예제 #1
0
파일: Admin.php 프로젝트: Kapitonova/codex
 public function before()
 {
     parent::before();
     if (!$this->user->checkAccess(array(Model_User::ROLE_ADMIN))) {
         throw new HTTP_Exception_403();
     }
 }
예제 #2
0
파일: Stats.php 프로젝트: Kapitonova/codex
 public function __construct()
 {
     $this->redis = Controller_Base_preDispatch::_redis();
 }