@@ -6,19 +6,19 @@ |
||
6 | 6 | class HomeController extends Controller |
7 | 7 | { |
8 | 8 | |
9 | - public function index() { |
|
9 | + public function index() { |
|
10 | 10 | |
11 | - $this->params['title'] = "Sephy Simple PHP Framework"; |
|
11 | + $this->params['title'] = "Sephy Simple PHP Framework"; |
|
12 | 12 | |
13 | - return $this->view('home.index',$this->params); |
|
14 | - } |
|
13 | + return $this->view('home.index',$this->params); |
|
14 | + } |
|
15 | 15 | |
16 | 16 | |
17 | - public function subpage() { |
|
17 | + public function subpage() { |
|
18 | 18 | |
19 | - $this->params['title'] = "Sephy Simple PHP Framework - Sub Page"; |
|
19 | + $this->params['title'] = "Sephy Simple PHP Framework - Sub Page"; |
|
20 | 20 | |
21 | - return $this->view('home.subpage',$this->params); |
|
22 | - } |
|
21 | + return $this->view('home.subpage',$this->params); |
|
22 | + } |
|
23 | 23 | |
24 | 24 | } |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | |
11 | 11 | $this->params['title'] = "Sephy Simple PHP Framework"; |
12 | 12 | |
13 | - return $this->view('home.index',$this->params); |
|
13 | + return $this->view('home.index', $this->params); |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | |
19 | 19 | $this->params['title'] = "Sephy Simple PHP Framework - Sub Page"; |
20 | 20 | |
21 | - return $this->view('home.subpage',$this->params); |
|
21 | + return $this->view('home.subpage', $this->params); |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | } |
@@ -1,4 +1,4 @@ |
||
1 | 1 | </div> |
2 | 2 | <div class="content"> |
3 | - © <?php echo date('Y');?> by <a href="http://adrielov.com.br" class="navbar-link" target="_blank">Adriel Oliveira</a> |
|
3 | + © <?php echo date('Y'); ?> by <a href="http://adrielov.com.br" class="navbar-link" target="_blank">Adriel Oliveira</a> |
|
4 | 4 | </div> |
@@ -6,11 +6,11 @@ |
||
6 | 6 | } |
7 | 7 | |
8 | 8 | define("DS", "/"); |
9 | -define("ROOT_DIR", dirname(realpath(dirname(__FILE__)) . DS)); |
|
10 | -define("ROOT_APP", dirname(dirname(__FILE__)) . DS . 'App' . DS); |
|
11 | -define("ROOT_ASSETS", dirname(__FILE__) . DS . 'assets' . DS); |
|
12 | -define("ROOT_CORE", dirname(dirname(__FILE__)) . DS . 'Core' . DS); |
|
13 | -define("ROOT_CACHE", dirname(dirname(__FILE__)) . DS . 'Cache' . DS); |
|
9 | +define("ROOT_DIR", dirname(realpath(dirname(__FILE__)).DS)); |
|
10 | +define("ROOT_APP", dirname(dirname(__FILE__)).DS.'App'.DS); |
|
11 | +define("ROOT_ASSETS", dirname(__FILE__).DS.'assets'.DS); |
|
12 | +define("ROOT_CORE", dirname(dirname(__FILE__)).DS.'Core'.DS); |
|
13 | +define("ROOT_CACHE", dirname(dirname(__FILE__)).DS.'Cache'.DS); |
|
14 | 14 | |
15 | 15 | if (file_exists($autoloader = '../vendor/autoload.php')) { |
16 | 16 | require $autoloader; |