AppView.avec_bootstrap.php
1.55 KB
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
57
58
59
60
61
62
63
64
65
<?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
$this->initializeUI();
/*
// without TRAIT
//Don't forget to call the parent::initialize()
parent::initialize();
*/
}
}