Ejemplo n.º 1
0
 public function _initialize()
 {
     parent::_initialize();
     $this->_mod = D('Article');
     $this->_cate_mod = D('ArticleCate');
     // dump($this->_mod->addtime());
     $this->where = array("site_id" => $this->site_id);
 }
Ejemplo n.º 2
0
 public function _initialize()
 {
     parent::_initialize();
     $this->_mod = D('Menu');
     //  $group_mod = D("group");
     //  $site_mod = D("Site");
     //  $site_menu = $site_mod->site_init();
     //  $group_menu = $group_mod->group_init();
     // $this->assign('site_select', $site_menu);
     //  $this->assign('group_select', $group_menu);
 }
 public function _initialize()
 {
     parent::_initialize();
     $this->_mod = D($this->_name);
     $this->where = array("site_id" => $this->site_id);
 }