本文整理汇总了PHP中AppController::initialize方法的典型用法代码示例。如果您正苦于以下问题:PHP AppController::initialize方法的具体用法?PHP AppController::initialize怎么用?PHP AppController::initialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AppController
的用法示例。
在下文中一共展示了AppController::initialize方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initialize
public function initialize()
{
parent::initialize();
$this->loadModel('Characters');
$this->loadModel('Armour');
$this->loadModel('CharactersArmour');
}
示例2: initialize
public function initialize()
{
parent::initialize();
$this->loadComponent('RequestHandler');
$this->loadModel('Characters');
$this->loadModel('Obligations');
}
示例3: initialize
public function initialize()
{
parent::initialize();
$this->loadComponent('Flash');
// Include the FlashComponent
/*$user = $this->Auth->user();
$this->set(compact('user'));*/
}
示例4: initialize
public function initialize()
{
parent::initialize();
// Set the layout
$this->layout = 'frontend';
$this->loadComponent('Flash');
// Include the FlashComponent
}
示例5: initialize
public function initialize()
{
parent::initialize();
$this->mapMethod('add', ['referee']);
$this->mapMethod('delete', ['referee']);
$this->mapMethod('edit', ['referee']);
$this->mapMethod('index', ['player']);
$this->mapMethod('view', ['player']);
}
示例6: initialize
public function initialize()
{
parent::initialize();
$this->mapMethod('add', ['referee']);
$this->mapMethod('delete', ['super']);
$this->mapMethod('edit', ['referee']);
$this->mapMethod('index', ['referee']);
$this->mapmethod('view', ['referee', 'user'], true);
}
示例7: initialize
public function initialize()
{
parent::initialize();
$this->mapMethod('charactersAdd', ['infobalie']);
$this->mapMethod('charactersDelete', ['infobalie']);
$this->mapMethod('charactersEdit', ['infobalie']);
$this->mapMethod('charactersIndex', ['referee', 'user'], true);
$this->mapMethod('charactersView', ['referee', 'user'], true);
$this->mapMethod('spellsIndex', ['referee'], true);
}
示例8: initialize
public function initialize()
{
parent::initialize();
$this->mapMethod('charactersAdd', ['infobalie']);
$this->mapMethod('charactersDelete', ['infobalie']);
# There are no properties on this relation to edit
# $this->mapMethod('charactersEdit', [ 'infobalie' ]);
$this->mapMethod('charactersIndex', ['referee'], true);
$this->mapMethod('charactersView', ['referee', 'user'], true);
$this->mapMethod('skillsIndex', ['referee'], true);
}
示例9: initialize
public function initialize()
{
parent::initialize();
}
示例10: initialize
public function initialize()
{
parent::initialize();
$this->loadComponent('Flash');
// Include the FlashComponent
}
示例11: initialize
/**
* Initialize the controller with the navigation component
*
* @return void
*/
public function initialize()
{
parent::initialize();
$this->loadComponent('Navigation');
}
示例12: initialize
/**
* Initialization hook method.
*
* @return void
*/
public function initialize()
{
parent::initialize();
$this->loadComponent('Search.Prg');
$this->loadComponent('Union/Core.BulkProcess');
}
示例13: initialize
public function initialize()
{
$this->viewBuilder()->layout(false);
parent::initialize();
}
示例14: initialize
public function initialize()
{
parent::initialize();
$this->Auth->allow();
}
示例15: initialize
public function initialize()
{
parent::initialize();
$this->loadModel('Users');
$this->loadComponent('ImageUpload', ['upload_dir' => 'webroot/img/avatars']);
}