标签:io ar sp on log cti bs as nbsp
protected function _initialize(){
parent :: _initialize();
$this -> agentid = $_SESSION[‘agentid‘];
if (!$this -> agentid){
$this -> error(‘没有权限‘, U(‘Login/index‘));
}
$this -> agent_db = M(‘Agent‘);
$this -> thisAgent = $this -> agent_db -> where(array(‘id‘ => $this -> agentid)) -> find();
$this -> assign(‘thisAgent‘, $this -> thisAgent);
$this -> assign(‘menus‘, $this -> menus());
$this -> agentWhere = array(‘agentid‘ => $this -> thisAgent[‘id‘]);
}
标签:io ar sp on log cti bs as nbsp
原文地址:http://my.oschina.net/guomingliang/blog/347902