public function _initialize() { parent::_initialize(); $this->_column = M('column'); $this->_dianmian = M('dianmian'); $this->_friend = M('plug_link'); }
public function _initialize() { parent::_initialize(); $this->_column = M('column'); $this->_dianmian = M('dianmian'); $this->_marry = M('marry'); // $this->header(); }
public function _initialize() { parent::_initialize(); $this->_member_list = M('member_list'); $this->_dianmian = M('dianmian'); $this->_happy = M('happy'); $this->_car = M('car'); $this->_marry = M('marry'); $this->_house = M('house'); $this->_dianqi = M('dianqi'); $this->_sea = M('sea'); $this->_food = M('food'); $this->_farm = M('farm'); $this->_edu = M('edu'); $this->_recruit = M('recruit'); $this->_chang = M('chang'); $this->_jiaju = M('jiaju'); $this->_xiju = M('xiju'); // $this->header(); }
public function _initialize() { parent::_initialize(); $ctrl = CONTROLLER_NAME; //当前控制器名 $action = ACTION_NAME; //获取当前操作名 switch ($ctrl) { case 'Store': $name = '店铺大全'; $href = "__APP__/Store"; break; case 'Marry': $name = '相亲'; $href = "__APP__/Marry"; break; case 'Happy': $name = '喜庆'; $href = "__APP__/Happy"; break; case 'Car': $name = '汽车'; $href = "__APP__/Car"; break; case 'House': $name = '房子'; $href = "__APP__/House"; break; case 'Dianqi': $name = '电器'; $href = "__APP__/Dianqi"; break; case 'Sea': $name = '海鲜'; $href = "__APP__/Sea"; break; case 'Food': $name = '美食'; $href = "__APP__/Food"; break; case 'Farm': $name = '农业'; $href = "__APP__/Farm"; break; case 'Edu': $name = '教育'; $href = "__APP__/Edu"; break; case 'Recruit': $name = '招聘'; $href = "__APP__/Recruit"; break; case 'Chang': $name = '厂家/批发/代理商'; $href = "__APP__/Chang"; break; case 'Jiaju': $name = '家居'; $href = "__APP__/Jiaju"; break; case 'Xiju': $name = '雷州戏剧'; $href = "__APP__/Xiju"; break; case 'Head': $name = '搜索列表'; $href = ""; break; } if ($action == 'detail') { $detai = " / 详细内容"; } if ($action == 'modify') { $detai = " / 编辑"; } $this->assign('name', $name); $this->assign('href', $href); $this->assign('detai', $detai); $this->_column = M('column'); echo $_SERVER['HTTP_REFERER']; // $this->head(); }