function _check_access()
 {
     $allows = array('error', 'set_lang');
     if (in_array($this->uri->rsegments[2], $allows)) {
         return true;
     }
     return parent::_check_access();
 }
Example #2
0
 /**
  * __construct function.
  * 
  * @access public
  */
 function __construct()
 {
     parent::__construct();
     // $this->load->add_package_path(MODPATH . 'oauth');
     // $this->load->helper('url');
     // $this->load->library('session');
     // $this->load->database();
     // $this->load->helper('form');
     $this->load->library('oauth_server');
     // Initialise a session item to keep IE happy
     $this->session->set_userdata('init', uniqid());
 }
 function __construct()
 {
     parent::__construct();
     $this->_validation = array('add' => array('name' => array('required|callback__check_module_name|callback__check_table_name'), 'controller_base_class' => array('required'), 'model_base_class' => array('required')));
 }
Example #4
0
 function __construct()
 {
     parent::__construct();
     $this->_validation = array('add' => array(array('field' => 'name', 'label' => l('Name'), 'rules' => 'required|callback__check_module_name|callback__check_table_name'), array('field' => 'controller_base_class', 'label' => l('Controller Base Class'), 'rules' => 'required'), array('field' => 'model_base_class', 'label' => l('Model Base Class'), 'rules' => 'required')));
 }
Example #5
0
 function __construct()
 {
     parent::__construct();
     $this->load->helper(array('xform'));
 }