公告版位
部落格現在轉到 http://blog.carlcarl.me 囉,要跟pixnet的部落格說掰掰哩>.<
目前分類:Zend Framework (2)
- Jun 21 Tue 2011 08:48
windows底下 xdebug, wincachegrind, Zend server
- Apr 24 Sun 2011 23:22
Zend Framework 加上使用者權限(Acl)設定
首先先在bootstrap.php檔案裡加上下面這個function
protected function _initControllers() { $this->bootstrap('FrontController'); //require_once '../library/Controller/Helper/Acl.php'; //require_once '../library/Controller/Plugin/Auth.php'; $acl = new Controller_Helper_Acl(); $auth = Zend_Auth::getInstance(); $front = Zend_Controller_Front::getInstance(); $front->registerPlugin(new Controller_Plugin_Auth($auth, $acl)); }