Completed
Push — master ( 696b96...bf8c2d )
by Fèvre
11s
created

AppView::initialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 11
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 7
nc 1
nop 0
1
<?php
2
namespace App\View;
3
4
use Cake\View\View;
5
6
class AppView extends View
7
{
8
9
    /**
10
     * Initialization hook method.
11
     *
12
     * Use this method to add common initialization code like loading helpers.
13
     *
14
     * @return void
15
     */
16
    public function initialize()
17
    {
18
        parent::initialize();
19
        $this->loadHelper('Form', [
20
            'templates' => 'form-templates'
21
        ]);
22
        $this->loadHelper('Paginator', [
23
            'templates' => 'paginator-templates'
24
        ]);
25
        $this->loadHelper('Acl');
26
    }
27
}
28