Exemplo n.º 1
0
 /**
  * __construct()
  * Class constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->view_dir = '_acme/app_access';
     $this->controller_name = 'app_access';
     // Check if acme is already installed
     if (!$this->acme_installed) {
         redirect('app_installer');
     }
 }
 /**
  * __construct()
  * Class constructor. Receives the class name from module to be loaded.
  * @param string controller
  * @return object
  */
 public function __construct($controller = '')
 {
     parent::__construct();
     // Check session
     $this->access->validate_session();
     // lower case on module name
     $this->controller = strtolower($controller);
     // Try to load module
     $this->_load_module();
 }
Exemplo n.º 3
0
 /**
  * __construct()
  * Class constructor.
  */
 public function __construct()
 {
     parent::__construct();
     // Set language setting
     if ($this->session->userdata('language') == '') {
         $this->session->set_userdata('language', LANGUAGE);
     }
     // Set url_default setting
     if ($this->session->userdata('url_default') == '') {
         $this->session->set_userdata('url_default', 'http://www.acmeframework.org');
     }
 }