public function add() { $smarty = get_smarty(); $this->_goodsleft($smarty); //取出所有的一级分类 $first_cate_list = CateM::getAllFirstCate(); $smarty->assign('first_cate_list', $first_cate_list); //添加动作连接 $act_url = url('admin', 'cate::act'); $smarty->assign('act_url', $act_url); $cate_info = array('cate_name' => '', 'fid' => '0'); $smarty->assign('cate_info', $cate_info); $smarty->assign('is_detail', 'no'); $smarty->display('admin/cate/cate_add.html'); }