<?php
namespace app\admin\model;
use think\Model;
class Classgds extends Model
{
public function Catetree(){
$cateres=$this->select();
return $this->sort($cateres);
}
}
<?php
namespace app\admin\controller;
use think\Controller;
use app\admin\model\Classgds as ClassgdsModel;
class Classgds extends Permission_login
{
public function lst(){
// 权限设置
Permission_login::diee_0();
$cate= new ClassgdsModel;
$catename=$cate->Catetree();
$this->assign('cateres',$cateres);
// 加载分类模版
return $this->fetch();
}
类的属性不存在:app\admin\model\Classgds->pic是什么原因?
最佳答案
