Spaces:
Sleeping
Sleeping
Commit
·
789f143
1
Parent(s):
023cdb0
cleaning controllers
Browse files- mvc/app/controllers/Test.php +0 -1
- mvc/app/controllers/Welcome.php +0 -1
- mvc/app/libs/Core.php +2 -2
mvc/app/controllers/Test.php
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
<?php
|
2 |
class Test{
|
3 |
public function __construct(){
|
4 |
-
echo('Welcome to app test');
|
5 |
}
|
6 |
}
|
7 |
|
|
|
1 |
<?php
|
2 |
class Test{
|
3 |
public function __construct(){
|
|
|
4 |
}
|
5 |
}
|
6 |
|
mvc/app/controllers/Welcome.php
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
<?php
|
2 |
class Welcome{
|
3 |
public function __construct(){
|
4 |
-
echo('Welcome to app');
|
5 |
}
|
6 |
|
7 |
public function index(){
|
|
|
1 |
<?php
|
2 |
class Welcome{
|
3 |
public function __construct(){
|
|
|
4 |
}
|
5 |
|
6 |
public function index(){
|
mvc/app/libs/Core.php
CHANGED
@@ -5,8 +5,8 @@
|
|
5 |
fqdn[/path]/controller/view/[params/]
|
6 |
|
7 |
example:
|
8 |
-
example.com/
|
9 |
-
example.com/
|
10 |
*/
|
11 |
|
12 |
class Core{
|
|
|
5 |
fqdn[/path]/controller/view/[params/]
|
6 |
|
7 |
example:
|
8 |
+
example.com/welcome/index
|
9 |
+
example.com/welcome/test/4
|
10 |
*/
|
11 |
|
12 |
class Core{
|