本文整理汇总了PHP中Pages::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Pages::__construct方法的具体用法?PHP Pages::__construct怎么用?PHP Pages::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pages
的用法示例。
在下文中一共展示了Pages::__construct方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
function __construct()
{
// Call the Controller constructor
parent::__construct();
$this->load->library('session');
$this->load->helper('url');
}
示例2: array
function __construct()
{
parent::__construct();
$this->prefix = array('mdc', 'cfg');
$this->params = array('name', 'arg', 'style', 'js', 'css', 'ajax');
$this->pattern_params = $this->generate_pattern_param();
$site = $this->config->item('site');
/*
$this->cfg_params = array(
"num_tel" => $site['num_tel'],
"num_tel2" => $site['num_tel2'],
"num_tel_7" => $site['num_tel_7'],
"num_tel2_7" => $site['num_tel2_7'],
"code_tel_495" => $site['code_tel_495'],
"code_tel_499" => $site['code_tel_499'],
"num_fax" => $site['num_fax'],
"address" => $site['address'],
"postal_code" => $site['postal_code'],
"city" => $site['city'],
"email" => $site['email'],
"email2" => $site['email2'],
"www" => $site['www'],
"name" => $site['name'],
"short_name" => $site['short_name'],
);
*/
$this->cfg_params = $site;
}
示例3:
function __construct()
{
// Call the Controller constructor
parent::__construct();
$this->load->helper('url');
$this->load->helper('form');
$this->load->model('prayer_model', 'prayerData');
}
示例4:
function __construct()
{
parent::__construct();
$this->table = 'grid_pages_seo';
}
示例5: construct
/**
* Constructor
*
* @return void
*/
function construct()
{
// Call the Controller constructor
parent::__construct();
}
示例6:
function __construct()
{
parent::__construct();
}