<?php

namespace app\admin\controller;

use think\Controller;

class Link extends Common {

    public function _initialize()
    {
        parent::_initialize(); // TODO: Change the autogenerated stub
    }

    //链接模型显示
    public function index(){
        //所有模型
        $models=model('models')->adminGetModelSelectAndUrl();
        $this->assign('models',$models);
        //根据模型id查找链接栏目
        $link_data=model('category')->adminGetDataToModelId($this->model_data['id']);
        $this->assign('data',$link_data);
        return $this->fetch();
    }

}