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); }
public function __construct($action, $urlRoutePath) { parent::__construct($action, $urlRoutePath); //create the model object require "models/home.php"; $this->model = new HomeModel(); }
public function __construct($action, $urlRoutePath) { parent::__construct($action, $urlRoutePath); //create the model object require "models/statistics.php"; $this->model = new StatisticsModel(); }
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'); }
public function __construct() { parent::__construct(); use_helper('Yui', 'Zip'); $this->vars = array(); }