mirror of
https://github.com/Aviortheking/DeltaCMS.git
synced 2025-07-26 19:59:51 +00:00
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:
13
src/Modules/ModuleName/Controller/ExampleController.php
Normal file
13
src/Modules/ModuleName/Controller/ExampleController.php
Normal 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!";
|
||||
}
|
||||
}
|
9
src/Modules/ModuleName/modulename.json
Normal file
9
src/Modules/ModuleName/modulename.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"routes": {
|
||||
"route_name": {
|
||||
"path": "/example",
|
||||
"controller": "\\AdminPanel\\Modules\\ModuleName\\Controller\\ExampleController",
|
||||
"function": "example"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user