本文整理汇总了PHP中MY_Controller::__Construct方法的典型用法代码示例。如果您正苦于以下问题:PHP MY_Controller::__Construct方法的具体用法?PHP MY_Controller::__Construct怎么用?PHP MY_Controller::__Construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MY_Controller
的用法示例。
在下文中一共展示了MY_Controller::__Construct方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
function __Construct()
{
parent::__Construct();
$this->load->database();
// load database
$this->load->model('piechart_model');
// load model
$this->load->model('dashboard_model');
}
示例2: array
function __Construct()
{
parent::__Construct();
$this->load->database();
// load database
$this->load->model('report_model');
// load model
global $time_array;
$time_array = array("" => "--select--", "00:00" => "00:00", "01:00" => "01:00", "02:00" => "02:00", "03:00" => "03:00", "04:00" => "04:00", "05:00" => "05:00", "06:00" => "06:00", "07:00" => "07:00", "08:00" => "08:00", "09:00" => "09:00", "10:00" => "10:00", "11:00" => "11:00", "12:00" => "12:00", "13:00" => "13:00", "14:00" => "14:00", "15:00" => "15:00", "16:00" => "16:00", "17:00" => "17:00", "18:00" => "18:00", "19:00" => "19:00", "20:00" => "20:00", "21:00" => "21:00", "22:00" => "22:00", "23:00" => "23:00", "24:00" => "24:00");
}