本文整理汇总了PHP中AppController::constructClasses方法的典型用法代码示例。如果您正苦于以下问题:PHP AppController::constructClasses方法的具体用法?PHP AppController::constructClasses怎么用?PHP AppController::constructClasses使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AppController
的用法示例。
在下文中一共展示了AppController::constructClasses方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: constructClasses
function constructClasses()
{
if (in_array('Upgrader', App::objects('plugin')) && !empty($this->params['admin'])) {
App::import('Lib', 'Upgrader.Upgrader');
Upgrader::requireUpgraded('Shop', $this);
}
return parent::constructClasses();
}
示例2: constructClasses
function constructClasses()
{
App::import('Lib', 'Newsletter.NewsletterUpgrade');
if (!empty($this->params['admin']) && $this->params['controller'] != 'newsletter_upgrade' && $this->params['action'] == 'admin_index' && NewsletterUpgrade::check()) {
$this->redirect(array('plugin' => 'newsletter', 'controller' => 'newsletter_upgrade', 'action' => 'upgrade', 'admin' => true));
}
return parent::constructClasses();
}
示例3: constructClasses
/**
* Loads Model classes based on the the uses property
* see Controller::loadModel(); for more info.
* Loads Components and prepares them for initialization.
*
* @return mixed true if models found and instance created, or cakeError if models not found.
* @access public
* @see Controller::loadModel()
* @link http://book.cakephp.org/view/977/Controller-Methods#constructClasses-986
*/
public function constructClasses()
{
parent::constructClasses();
$this->Email = $this->CustomEmail;
}
示例4: constructClasses
public function constructClasses()
{
$components = array('Libs.Secure');
$this->components = Set::merge($this->components, $components);
parent::constructClasses();
}