Modified default controller from index.php to app.php
This commit is contained in:
parent
841b16266a
commit
c9365707b8
3 changed files with 51 additions and 5 deletions
|
|
@ -42,7 +42,7 @@ function get_route($path_info) {
|
|||
|
||||
case 0:
|
||||
|
||||
$controller='modules/'.\PhangoApp\PhaRouter\Config::$home_module.'/controllers/index.php';
|
||||
$controller='modules/'.\PhangoApp\PhaRouter\Config::$home_module.'/controllers/app.php';
|
||||
|
||||
return \PhangoApp\PhaRouter\get_controller($controller, []);
|
||||
|
||||
|
|
@ -50,7 +50,7 @@ function get_route($path_info) {
|
|||
|
||||
case 1:
|
||||
|
||||
$controller='modules/'.$arr_path[1].'/controllers/index.php';
|
||||
$controller='modules/'.$arr_path[1].'/controllers/app.php';
|
||||
|
||||
if(in_array($arr_path[1], Config::$modules_allowed)) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue