$model = D('ba
$where['id'] = array('not in','2,13,7,14');
$records = $model->field('id,cys_desc')->where($where)->select();
$temp[0] = 'single';
foreach($records as $sec){
$temp[$sec['id']] = $sec['cys_desc'];
}
$menus['单页面管理'] = $temp;
$model = D('ba
//冲unset开始到selsect结束 请问这里有什么错误呢~
unset($where,$temp);
$where['cys_keys'] = 'daohang';
$where['cys_index'] = array('not in','1,27');
$records = $model->field('cys_index,cys_menu_name')->where($where)->select();
这里开启的话错误提示我Fatal error: Cannot instantiate abstract class Action in G:\wamp\www\ThinkPHP\Common\common.php on line 277
如果屏蔽了就没有这个错误 我的model里面全是自动~~
$temp[0] = 'industry';
foreach($records as $sec){
$temp[$sec['cys_index']] = $sec['cys_menu_name'];
}
$menus['行业页面管理'] = $temp;
return $menus;
}
最佳答案