Completed
Push — master ( c5cc72...7c6f56 )
by Jean-Christophe
02:02
created

ControllerBase   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 2
dl 0
loc 14
rs 10
c 0
b 0
f 0
1
<?php
2
use micro\utils\RequestUtils;
3
use micro\controllers\Controller;
4
 /**
5
 * ControllerBase
6
 **/
7
abstract class ControllerBase extends Controller{
8
9
	public function initialize(){
10
		if(!RequestUtils::isAjax()){
11
			$this->loadView("main/vHeader.html");
12
		}
13
	}
14
15
	public function finalize(){
16
		if(!RequestUtils::isAjax()){
17
			$this->loadView("main/vFooter.html");
18
		}
19
	}
20
}
21