mirror of
https://github.com/twisterarmy/skeleton.git
synced 2025-02-03 18:44:18 +00:00
This commit is contained in:
parent
9d6eed685f
commit
af3d696aed
@ -40,6 +40,7 @@ return [
|
|||||||
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
|
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
|
||||||
// $whoops->pushHandler(new \Whoops\Handler\JsonResponseHandler);
|
// $whoops->pushHandler(new \Whoops\Handler\JsonResponseHandler);
|
||||||
$whoops->register();
|
$whoops->register();
|
||||||
|
|
||||||
$c->request->execute_route(require __DIR__ . '/routes.php');
|
$c->request->execute_route(require __DIR__ . '/routes.php');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@ class AdminController extends Controller
|
|||||||
{
|
{
|
||||||
function indexAction()
|
function indexAction()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function clubAction($id)
|
function clubAction($id)
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
Hello World
|
@ -48,9 +48,15 @@ return function($response)
|
|||||||
'<body>' .
|
'<body>' .
|
||||||
'<div class="container">';
|
'<div class="container">';
|
||||||
|
|
||||||
require __DIR__ . '/../elements/' . $response->elements['header'] . '/view.php';
|
// require __DIR__ . '/../elements/' . $response->elements['header'] . '/view.php';
|
||||||
require __DIR__ . '/../elements/' . $response->elements['content'] . '/view.php';
|
// require __DIR__ . '/../elements/' . $response->elements['content'] . '/view.php';
|
||||||
require __DIR__ . '/../elements/' . $response->elements['footer'] . '/view.php';
|
// require __DIR__ . '/../elements/' . $response->elements['footer'] . '/view.php';
|
||||||
|
|
||||||
|
$path = $response->container->config['paths']['elements'];
|
||||||
|
|
||||||
|
require $path . $response->elements['header'] . '/view.php';
|
||||||
|
require $path . $response->elements['content'] . '/view.php';
|
||||||
|
require $path . $response->elements['footer'] . '/view.php';
|
||||||
|
|
||||||
echo
|
echo
|
||||||
'</div>' .
|
'</div>' .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user