MY_Controller::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
cc 2
nc 2
nop 0
1
<?php
2
3
/**
4
 * @property CI_Output $output
5
 */
6
class MY_Controller extends CI_Controller
7
{
8
	public function __construct()
9
	{
10
		parent::__construct();
11
		
12
		$this->output->set_header('Content-Type: text/html; charset=UTF-8');
13
		
14
		if (ENVIRONMENT === 'development') {
15
			$this->output->enable_profiler(TRUE);
16
		}
17
	}
18
}
19