huwhois 3 years ago
parent
commit
1ee7dbcc0d
2 changed files with 1 additions and 24 deletions
  1. 1 1
      application/App.php
  2. 0 23
      application/Controller.php

+ 1 - 1
application/App.php

@ -22,7 +22,7 @@ class App{
22 22
        $pathinfo = "";
23 23
        if ($_SERVER['PATH_INFO']) {
24 24
            $pathinfo = $_SERVER['PATH_INFO'];
25
        } elseif (false !== strpos(PHP_SAPI, 'cgi-fcgi')) {
25
        } else {
26 26
            $pathinfo = strpos($_SERVER['REQUEST_URI'], '?') ? strstr($_SERVER['REQUEST_URI'], '?', true) : $_SERVER['REQUEST_URI'];
27 27
        }
28 28

+ 0 - 23
application/Controller.php

@ -1,23 +0,0 @@
1
<?php
2
namespace app;
3
4
use app\View;
5
6
class Controller
7
{ 	
8
	protected $view;
9
10
	public function __construct(){
11
		$this->view = new View();
12
	}
13
	
14
	public function fetch($file = ""){
15
16
		return $this->view->fetch($file);
17
	}
18
19
	public function assign($name,$value)
20
	{
21
		return $this->view->assign($name,$value);
22
	}
23
}