Blame view

src/View/AppView.avec_bootstrap.php 1.8 KB
2285e405   Etienne Pallier   v2.13.13 - ajout ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?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;

// Added for bootstrap-ui (EP 28/1/20)
// with TRAIT
use BootstrapUI\View\UIViewTrait;
use Cake\View\View;
/*
// without TRAIT
//use Cake\View\View;
use BootstrapUI\View\UIView;
*/



/**
 * Application View
 *
 * Your application’s default view class
 *
 * @link http://book.cakephp.org/3.0/en/views.html#the-app-view
 */
// Modified for bootstrap-ui (EP 28/1/20)
//class AppView extends UIView
class AppView extends View
{

    // Added for bootstrap-ui (EP 28/1/20)
    use UIViewTrait;
    /**
     * Initialization hook method.
     *
     * Use this method to add common initialization code like loading helpers.
     *
     * e.g. `$this->loadHelper('Html');`
     *
     * @return void
     */
    public function initialize()
    {
        // Added for bootstrap-ui (EP 28/1/20)
        
        // with TRAIT
        // Render the initializeUI method from the UIViewTrait
8fc420fa   Etienne Pallier   une etape de plus...
57
58
59
60
61
        // When no layout for the view is defined the BootstrapUI\View\UIViewTrait will load its own default.ctp layout file
        //$this->initializeUI();
        // You can override this behavior by disabling auto loading of the layout :
        $this->initializeUI(['layout' => false]);

2285e405   Etienne Pallier   v2.13.13 - ajout ...
62
63
64
65
66
67
68
        /*
        // without TRAIT
        //Don't forget to call the parent::initialize()
        parent::initialize();
        */
    }
}