function _initialize()
 {
     parent::_initialize();
     // 子导航
     $action = strtolower(_ACTION);
     $res['title'] = '首页模板';
     $res['url'] = addons_url('WeiSite://template/index');
     $res['class'] = $action == 'index' ? 'cur' : '';
     $nav[] = $res;
     $res['title'] = '二级分类模板';
     $res['url'] = addons_url('WeiSite://template/subcate');
     $res['class'] = $action == 'subcate' ? 'cur' : '';
     $nav[] = $res;
     $res['title'] = '图文列表模板';
     $res['url'] = addons_url('WeiSite://template/lists');
     $res['class'] = $action == 'lists' ? 'cur' : '';
     $nav[] = $res;
     $res['title'] = '图文内容模板';
     $res['url'] = addons_url('WeiSite://template/detail');
     $res['class'] = $action == 'detail' ? 'cur' : '';
     $nav[] = $res;
     $res['title'] = '底部菜单模板';
     $res['url'] = addons_url('WeiSite://template/footer');
     $res['class'] = $action == 'footer' ? 'cur' : '';
     $nav[] = $res;
     $this->assign('sub_nav', $nav);
 }
 function _initialize()
 {
     $this->model = $this->getModel('weisite_footer');
     parent::_initialize();
 }
 function _initialize()
 {
     $this->model = $this->getModel('weisite_category');
     parent::_initialize();
 }
 function _initialize()
 {
     $this->model = $this->getModel('weisite_slideshow');
     parent::_initialize();
 }
 function _initialize()
 {
     $this->model = $this->getModel('custom_reply_news');
     parent::_initialize();
 }
 public function _initialize()
 {
     $this->model = $this->getModel('product');
     parent::_initialize();
 }