/**
  * 初始化
  *
  */
 public function init()
 {
     parent::init();
     $this->view->pageTitle = '人生若只初见';
     $cate = new YUN_Cate($this->db);
     $this->view->cateList = $cateList = $cate->cateList();
     // 导航分类
     $linkSql = $this->db->select()->from('link', '*');
     $this->view->linkList = $this->db->fetchAll($linkSql);
 }
 /**
  * 重載 繼承的 YUN_Controller_Action init 方法
  *
  */
 public function init()
 {
     parent::init();
     $http = new Zend_Controller_Request_Http();
     if (!$this->auth->isAllow('index.access')) {
         if ($this->auth->isLogined()) {
             $this->view->feedback(array('message' => '对不起,您没有权限执行该操作!', 'redirect' => $this->view->url(array('module' => 'default', 'controller' => 'user', 'action' => 'login')), 'linktext' => '点击继续'));
         } else {
             $this->view->Feedback(array('title' => '发生错误', 'message' => '对不起,您尚未登录', 'linktext' => '点击前往登录页面', 'redirect' => $this->view->url(array('module' => 'default', 'controller' => 'user', 'action' => 'login')) . '?u=' . urlencode('http://' . $http->getHttpHost() . $http->getRequestUri())));
         }
     }
     $this->config = Zend_Registry::get('config');
 }
 /**
  * 初始化
  */
 public function init()
 {
     parent::init();
     $this->view->pageTitle = '人生若只初见';
     $this->config = Zend_Registry::get('config');
 }
 /**
  * 初始化
  *
  */
 public function init()
 {
     parent::init();
     $this->file = new FileModel();
 }
 /**
  * 初始化
  */
 public function init()
 {
     parent::init();
 }
 /**
  * 重載 繼承的 YUN_Controller_Action init 方法
  */
 public function init()
 {
     parent::init();
     $this->config = Zend_Registry::get('config');
 }