<?php
namespace app\product\admin;
use app\system\admin\Admin;
use app\product\model\Cate as CateModel;
class Cate extends Admin
{
protected $hisiModel = 'Cate' protected $hisiTable = '' protected $hisiAddScene = '' protected $hisiEditScene = '' protected function initialize()
{
parent::initialize();
if ($this->request->action() != 'index' && !$this->request->isPost()) {
$category = CateModel::getSelect(CateModel::getChilds());
$this->assign('category', $category);
}
}
public function index()
{
$data_list = CateModel::getChilds(0, 0);
$this->assign('data_list', $data_list);
$this->assign('hisiTabType', 0);
$this->assign('hisiTabData', '');
return $this->fetch();
}
}