当前位置: 首页>>代码示例>>PHP>>正文


PHP AppController::initialize方法代码示例

本文整理汇总了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');
 }
开发者ID:Cylindric,项目名称:edge,代码行数:7,代码来源:CharacterArmourController.php

示例2: initialize

 public function initialize()
 {
     parent::initialize();
     $this->loadComponent('RequestHandler');
     $this->loadModel('Characters');
     $this->loadModel('Obligations');
 }
开发者ID:Cylindric,项目名称:edge,代码行数:7,代码来源:ObligationsController.php

示例3: initialize

 public function initialize()
 {
     parent::initialize();
     $this->loadComponent('Flash');
     // Include the FlashComponent
     /*$user = $this->Auth->user();
       $this->set(compact('user'));*/
 }
开发者ID:HNebot,项目名称:musicblog,代码行数:8,代码来源:ArticlesController.php

示例4: initialize

 public function initialize()
 {
     parent::initialize();
     // Set the layout
     $this->layout = 'frontend';
     $this->loadComponent('Flash');
     // Include the FlashComponent
 }
开发者ID:UmerKhagga,项目名称:CakePhpExample,代码行数:8,代码来源:PostsController.php

示例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']);
 }
开发者ID:pwerken,项目名称:va-void,代码行数:9,代码来源:BelievesController.php

示例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);
 }
开发者ID:pwerken,项目名称:va-void,代码行数:9,代码来源:PowersController.php

示例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);
 }
开发者ID:pwerken,项目名称:va-void,代码行数:10,代码来源:CharactersSpellsController.php

示例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);
 }
开发者ID:pwerken,项目名称:va-void,代码行数:11,代码来源:CharactersSkillsController.php

示例9: initialize

 public function initialize()
 {
     parent::initialize();
 }
开发者ID:phithienthan,项目名称:apptest,代码行数:4,代码来源:HomeController.php

示例10: initialize

 public function initialize()
 {
     parent::initialize();
     $this->loadComponent('Flash');
     // Include the FlashComponent
 }
开发者ID:UmerKhagga,项目名称:BlogCookBook,代码行数:6,代码来源:ArticlesController.php

示例11: initialize

 /**
  * Initialize the controller with the navigation component
  *
  * @return void
  */
 public function initialize()
 {
     parent::initialize();
     $this->loadComponent('Navigation');
 }
开发者ID:ConnorChristie,项目名称:ChromecastMagicMirror,代码行数:10,代码来源:NavigationController.php

示例12: initialize

 /**
  * Initialization hook method.
  *
  * @return void
  */
 public function initialize()
 {
     parent::initialize();
     $this->loadComponent('Search.Prg');
     $this->loadComponent('Union/Core.BulkProcess');
 }
开发者ID:Cheren,项目名称:union,代码行数:11,代码来源:UsersController.php

示例13: initialize

 public function initialize()
 {
     $this->viewBuilder()->layout(false);
     parent::initialize();
 }
开发者ID:ungdailong,项目名称:admin_project,代码行数:5,代码来源:ElementController.php

示例14: initialize

 public function initialize()
 {
     parent::initialize();
     $this->Auth->allow();
 }
开发者ID:PhantomWatson,项目名称:macc,代码行数:5,代码来源:PagesController.php

示例15: initialize

 public function initialize()
 {
     parent::initialize();
     $this->loadModel('Users');
     $this->loadComponent('ImageUpload', ['upload_dir' => 'webroot/img/avatars']);
 }
开发者ID:TituxMetal,项目名称:Twitthome-CakePHP3,代码行数:6,代码来源:AccountParametersController.php


注:本文中的AppController::initialize方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。