本文整理汇总了PHP中Controller_Base::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Controller_Base::__construct方法的具体用法?PHP Controller_Base::__construct怎么用?PHP Controller_Base::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Controller_Base
的用法示例。
在下文中一共展示了Controller_Base::__construct方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($args)
{
parent::__construct($args);
if ($this->user['group'] != 'root') {
$this->error('Ошибка доступа');
}
}
示例2: __construct
public function __construct($registry)
{
global $lang;
parent::__construct($registry);
$this->presenter()->assign("header_aside", "{$lang}/_parts/header_aside.tpl");
$this->presenter()->assign("disable_scrolling", true);
$this->presenter()->assign("disable_ring", true);
}
示例3: __construct
public function __construct($registry)
{
global $lang;
parent::__construct($registry);
$this->presenter()->addScript(false, "js/jquery-1.4.2.min.js");
$this->presenter()->addScript(false, "js/pro.scroll.0.3.js");
$this->presenter()->addScript(true, $this->SCRIPT);
$this->presenter()->assign("header_aside", "{$lang}/_parts/header_aside.tpl");
}
示例4: __construct
public function __construct($registry)
{
global $lang;
parent::__construct($registry);
$this->presenter()->addScript(false, "js/jquery.js");
$this->presenter()->addScript(false, "js/easySlider1.7.js");
$this->presenter()->addScript(true, $this->SCRIPT);
$this->presenter()->assign("header_aside", "{$lang}/_parts/header_aside.tpl");
$this->presenter()->assign("page_menu", "{$lang}/_parts/page_menu.tpl");
}
示例5: __construct
public function __construct($registry)
{
global $lang;
parent::__construct($registry);
$this->presenter()->assign("header_aside", "{$lang}/_parts/header_aside.tpl");
//$this->presenter()->assign("page_menu", "$lang/_parts/page_menu.tpl");
$this->presenter()->addStyle(false, "js/jquery.jscrollpane2.css");
$this->presenter()->addStyle(true, $this->STYLE);
$this->presenter()->addScript(false, "js/jquery-1.6.1.min.js");
$this->presenter()->addScript(false, "js/jquery.mousewheel.js");
$this->presenter()->addScript(false, "js/jquery.jscrollpane.js");
$this->presenter()->addScript(true, $this->SCRIPT);
}
示例6: __construct
public function __construct($args)
{
parent::__construct($args);
SiteRead::me()->access('panel-settings');
}
示例7: __construct
/**
* 构造函数。(ok)
*
*/
public function __construct()
{
parent::__construct();
}
示例8:
function __construct()
{
$this->layouts = "first_layouts";
parent::__construct();
}
示例9: __construct
public function __construct($args)
{
parent::__construct($args);
}
示例10: __construct
public function __construct($params)
{
parent::__construct($params);
}
示例11: array
function __construct($args)
{
parent::__construct($args);
$this->avatars_dir = 'data/avatars';
$this->ava_sizes = array('original' => 0, 'small' => 50, 'norm' => 100, 'big' => 200);
}