ladogton2010 commited on
Commit
28b272e
·
1 Parent(s): f23d41b

Test example controllers

Browse files
mvc/app/controllers/Test.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Test{
3
+ public function __construct(){
4
+ echo('Welcome to app test');
5
+ }
6
+ }
7
+
mvc/app/libs/Core.php CHANGED
@@ -26,6 +26,7 @@
26
  $this->defaultController = ucwords($url[0]);
27
  unset($url[0]);
28
  }
 
29
  require_once('../app/controllers/' . $this->defaultController . '.php');
30
  $this->defaultController = new $this->defaultController;
31
  }
 
26
  $this->defaultController = ucwords($url[0]);
27
  unset($url[0]);
28
  }
29
+
30
  require_once('../app/controllers/' . $this->defaultController . '.php');
31
  $this->defaultController = new $this->defaultController;
32
  }