예제 #1
0
 function __construct()
 {
     parent::__construct();
     // ------------------------------------------------------------------------------------
     // MODEL
     // ------------------------------------------------------------------------------------
     if (!$this->model) {
         throw new Exception('Please initialize $model', 1);
     }
     // ------------------------------------------------------------------------------------
     // FILTERS
     // ------------------------------------------------------------------------------------
     if (!$this->filters) {
         throw new Exception('Please initialize $filters', 1);
     }
     // ------------------------------------------------------------------------------------
     // CRUD NAME
     // ------------------------------------------------------------------------------------
     if (!$this->crud_name) {
         throw new Exception('Please initialize $crud_name', 1);
     } else {
         $this->views['pages'] = $this->views['pages'] . str_plural($this->crud_name) . '.';
     }
     // ------------------------------------------------------------------------------------
     // STORE Command
     // ------------------------------------------------------------------------------------
     if (!$this->store_command) {
         throw new Exception('Please initialize $store_command', 1);
     }
 }
예제 #2
0
 function __construct()
 {
     parent::__construct();
     $this->views['pages'] = $this->views['pages'] . 'login.';
 }
예제 #3
0
 function __construct()
 {
     parent::__construct();
     $this->views['pages'] = $this->views['pages'] . 'dashboard.';
 }