/**
  * 初始化操作
  */
 public function init()
 {
     parent::init();
     $this->view->layout = array('title' => '分类管理', 'action' => array('list' => array('url' => array('module' => 'admin', 'controller' => 'category', 'action' => 'list'), 'text' => '新增分类')), 'current' => $this->module['action']);
     $mcate = new CategoryModule();
     $this->cate = new YUN_Cate($this->db);
 }
 /**
  * 初始化
  */
 public function init()
 {
     parent::init();
     $action['list'] = array('url' => array('module' => 'admin', 'controller' => 'user', 'action' => 'list'), 'text' => ' 用户列表');
     $this->view->layout = array('title' => '管理后台 - 用户管理', 'action' => $action, 'current' => $this->module['action']);
     $this->user = new UserModel();
 }
 /**
  * 初始化
  */
 public function init()
 {
     parent::init();
     $this->view->layout = array('title' => '上传文件管理', 'action' => array('list' => array('url' => array('module' => 'admin', 'controller' => 'file', 'action' => 'list'), 'text' => '文件列表'), 'add' => array('url' => array('module' => 'admin', 'controller' => 'file', 'action' => 'add'), 'text' => '上传'), 'cateList' => array('url' => array('module' => 'admin', 'controller' => 'file', 'action' => 'catelist'), 'text' => '分类')), 'current' => $this->module['action']);
     $this->file = new FileModel();
     $this->config = Zend_Registry::get('config');
     $this->fileBasePath = $this->config->upload->savePath;
 }
 /**
  * 初始化
  */
 public function init()
 {
     parent::init();
     $this->view->layout = array('title' => '管理后台 - 角色管理');
     $cache = Zend_Registry::get('cache');
     $cache->remove('acl_role');
     // 删除缓存
 }
 /**
  * 初始化
  */
 public function init()
 {
     parent::init();
     if (!$this->auth->isAllow('system.access')) {
         $this->view->feedback(array('message' => '对不起,您没有权限执行该操作!', 'linktext' => '点击继续'));
     }
     $this->_module = new ModuleModel();
     $this->view->layout = array('title' => '模块管理', 'action' => array('module' => array('url' => array('module' => 'admin', 'controller' => 'module', 'action' => 'list'), 'text' => '模块管理'), 'privilege' => array('url' => array('module' => 'admin', 'controller' => 'privilege', 'action' => 'list'), 'text' => '权限管理')), 'current' => $this->module['controller']);
 }
 /**
  * 初始化操作
  */
 public function init()
 {
     parent::init();
     if (!$this->auth->isAllow('mail.send')) {
         $this->view->feedback(array('message' => "对不起,您没有权限执行该操作"));
     }
     $this->_transport = new Zend_Mail_Transport_Smtp($this->config->mail->host, $this->config->mail->config->toArray());
     $this->view->layout = array('title' => '邮件管理', 'action' => array('index' => array('url' => array('module' => 'admin', 'controller' => 'mail', 'action' => 'index'), 'text' => '发送邮件'), 'set' => array('url' => array('module' => 'admin', 'controller' => 'mail', 'action' => 'set'), 'text' => '设置邮件')), 'current' => $this->module['action']);
 }
 /**
  * 初始化方法
  */
 public function init()
 {
     parent::init();
     $this->mod_name = $mod_name = $this->_request->getParam('mod_name');
     $this->rule = new RuleModel($mod_name);
     $this->privilege = new PrivilegeModel();
     $action['list'] = array('url' => array('module' => 'admin', 'controller' => 'rule', 'action' => 'list', 'mod_name' => $mod_name), 'text' => ' 规则管理');
     $action['add'] = array('url' => array('module' => 'admin', 'controller' => 'rule', 'action' => 'add', 'mod_name' => $mod_name), 'text' => '添加规则');
     $this->view->layout = array('title' => '管理后台 - 规则管理', 'action' => $action, 'current' => $this->module['action']);
 }
 /**
  * 初始化
  */
 public function init()
 {
     parent::init();
     $this->view->baseUrl = $this->_request->getBaseUrl();
     $this->view->article = new ArticleModel();
     $this->view->layout = array('title' => '文章管理', 'action' => array('list' => array('url' => array('module' => 'admin', 'controller' => 'article', 'action' => 'list'), 'text' => '文章列表'), 'add' => array('url' => array('module' => 'admin', 'controller' => 'article', 'action' => 'add'), 'text' => '添加文章')), 'current' => $this->module['action']);
     $mcate = new CategoryModule();
     $this->view->db = $mcate->getDb();
     $this->view->cate = new YUN_Cate($this->view->db);
     $this->view->treeRow = $this->view->cate->jqCateList();
 }
 /**
  * 初始化操作
  *
  */
 public function init()
 {
     parent::init();
     try {
         $modName = $this->_request->getParam('mod_name');
         $this->acl = new AclModel($modName);
         $this->role = new RoleModel($modName);
         $this->rule = new RuleModel($modName);
     } catch (Exception $e) {
         $this->view->feedback(array('title' => '发生错误', 'message' => $e->getMessage()));
     }
 }
 /**
  * 初始化
  */
 public function init()
 {
     parent::init();
     $this->view->layout = array('title' => '链接管理', 'action' => array('list' => array('url' => array('module' => 'admin', 'controller' => 'link', 'action' => 'list'), 'text' => '链接列表'), 'set' => array('url' => array('module' => 'admin', 'controller' => 'link', 'action' => 'set'), 'text' => '链接添加')), 'current' => $this->module['action']);
 }
 /**
  * 初始化
  */
 public function init()
 {
     parent::init();
 }
 /**
  * 初始化方法
  */
 public function init()
 {
     parent::init();
     $this->privilege = new PrivilegeModel();
     $this->view->layout = array('title' => '权限管理', 'action' => array('module' => array('url' => array('module' => 'admin', 'controller' => 'module', 'action' => 'list'), 'text' => '模块管理'), 'privilege' => array('url' => array('module' => 'admin', 'controller' => 'privilege', 'action' => 'list'), 'text' => '权限管理')), 'current' => 'privilege');
 }