本文整理匯總了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);
}