예제 #1
0
 function __construct()
 {
     $this->tank_auth->is_logged_in() ? true : redirect('/users/');
     parent::__construct();
     $this->data = $this->conf_model->get_version();
     $this->output->enable_profiler(true);
 }
예제 #2
0
 public function __construct($action, $urlRoutePath)
 {
     parent::__construct($action, $urlRoutePath);
     //create the model object
     require "models/home.php";
     $this->model = new HomeModel();
 }
예제 #3
0
 public function __construct($action, $urlRoutePath)
 {
     parent::__construct($action, $urlRoutePath);
     //create the model object
     require "models/statistics.php";
     $this->model = new StatisticsModel();
 }
예제 #4
0
 public function __construct($action, $urlRoutePath)
 {
     parent::__construct($action, $urlRoutePath);
     //create the model object
     require "models/authentication.php";
     $this->model = new AuthenticationModel();
 }
 public function __construct()
 {
     parent::__construct();
     $this->thisScript = admin_url() . '?page=' . $_GET['page'];
     wp_register_script('admin-js', plugins_url(null, __FILE__) . '/templates/js/admin-scripts.js', array('jquery'), '', true);
     wp_enqueue_script('jquery');
     wp_enqueue_script('admin-js');
 }
예제 #6
0
 public function __construct()
 {
     parent::__construct();
     use_helper('Yui', 'Zip');
     $this->vars = array();
 }