many changes

updated composer.json to user psr-4 autoloader
updated .htaccess to point to the correct file
Rewrite of most of the project
This commit is contained in:
2019-03-14 23:24:04 +01:00
parent 17f223d517
commit e4d59be18c
23 changed files with 147 additions and 364 deletions

View File

@ -0,0 +1,13 @@
<?php
namespace AdminPanel\Modules\ModuleName\Controller;
use AdminPanel\Classes\Controller;
class ExampleController extends Controller {
public function example() {
return "hello Controller!";
}
}

View File

@ -0,0 +1,9 @@
{
"routes": {
"route_name": {
"path": "/example",
"controller": "\\AdminPanel\\Modules\\ModuleName\\Controller\\ExampleController",
"function": "example"
}
}
}