Blame view

src/View/AppView.php 1.55 KB
6c4edfa3   Alexandre   First Commit LabI...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
/**
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link      http://cakephp.org CakePHP(tm) Project
 * @since     3.0.0
 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
 */
namespace App\View;

2285e405   Etienne Pallier   v2.13.13 - ajout ...
16
17
18
// Added for bootstrap-ui (EP 28/1/20)
// with TRAIT
use BootstrapUI\View\UIViewTrait;
6c4edfa3   Alexandre   First Commit LabI...
19
use Cake\View\View;
2285e405   Etienne Pallier   v2.13.13 - ajout ...
20
21
22
23
24
25
26
/*
// without TRAIT
//use Cake\View\View;
use BootstrapUI\View\UIView;
*/


6c4edfa3   Alexandre   First Commit LabI...
27
28
29
30
31
32
33
34

/**
 * Application View
 *
 * Your application’s default view class
 *
 * @link http://book.cakephp.org/3.0/en/views.html#the-app-view
 */
2285e405   Etienne Pallier   v2.13.13 - ajout ...
35
36
// Modified for bootstrap-ui (EP 28/1/20)
//class AppView extends UIView
6c4edfa3   Alexandre   First Commit LabI...
37
38
39
class AppView extends View
{

2285e405   Etienne Pallier   v2.13.13 - ajout ...
40
41
    // Added for bootstrap-ui (EP 28/1/20)
    use UIViewTrait;
6c4edfa3   Alexandre   First Commit LabI...
42
43
44
45
46
47
48
49
50
51
    /**
     * Initialization hook method.
     *
     * Use this method to add common initialization code like loading helpers.
     *
     * e.g. `$this->loadHelper('Html');`
     *
     * @return void
     */
    public function initialize()
2285e405   Etienne Pallier   v2.13.13 - ajout ...
52
53
54
55
56
57
58
59
60
61
62
63
64
    {
        // Added for bootstrap-ui (EP 28/1/20)
        
        // with TRAIT
        // Render the initializeUI method from the UIViewTrait
        $this->initializeUI();
        
        /*
        // without TRAIT
        //Don't forget to call the parent::initialize()
        parent::initialize();
        */
    }
6c4edfa3   Alexandre   First Commit LabI...
65
}