adding example apps, fixing powerup issues
[feisty_meow.git] / production / example_apps / zippy_maps / src / View / AppView.php
1 <?php
2 /**
3  * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4  * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
5  *
6  * Licensed under The MIT License
7  * Redistributions of files must retain the above copyright notice.
8  *
9  * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
10  * @link      http://cakephp.org CakePHP(tm) Project
11  * @since     3.0.0
12  * @license   http://www.opensource.org/licenses/mit-license.php MIT License
13  */
14 namespace App\View;
15
16 use Cake\View\View;
17
18 /**
19  * Application View
20  *
21  * Your application’s default view class
22  *
23  * @link http://book.cakephp.org/3.0/en/views.html#the-app-view
24  */
25 class AppView extends View
26 {
27
28     /**
29      * Initialization hook method.
30      *
31      * Use this method to add common initialization code like loading helpers.
32      *
33      * e.g. `$this->loadHelper('Html');`
34      *
35      * @return void
36      */
37     public function initialize()
38     {
39         // code added to load mapping view helper.
40         $config = [
41                         'autoScript' => true,
42                         'className' => 'Avmaps.ClusteringMap'
43         ];
44         $this->loadHelper('Geo.GoogleMap', $config);
45         
46         $this->loadHelper('Avmaps.MapDisplay');
47     }
48 }