assets in modules
This commit is contained in:
9
local/modules/TheliaDebugBar/Config/routing.xml
Normal file
9
local/modules/TheliaDebugBar/Config/routing.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<routes xmlns="http://symfony.com/schema/routing"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
|
||||||
|
|
||||||
|
<!-- Route to administration base -->
|
||||||
|
<route id="theliadebugbar.main" path="/admin/module/TheliaDebugBar">
|
||||||
|
<default key="_controller">TheliaDebugBar\Controller\Admin\TheliaDebugBarController::indexAction</default>
|
||||||
|
</route>
|
||||||
|
</routes>
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
namespace TheliaDebugBar\Controller\Admin;
|
||||||
|
|
||||||
|
use Thelia\Controller\Admin\BaseAdminController;
|
||||||
|
use Thelia\Core\Security\AccessManager;
|
||||||
|
|
||||||
|
class TheliaDebugBarController extends BaseAdminController
|
||||||
|
{
|
||||||
|
const RESOURCE_CODE = 'module.TheliaDebugBar';
|
||||||
|
|
||||||
|
public function indexAction()
|
||||||
|
{
|
||||||
|
if (null !== $response = $this->checkAuth(self::RESOURCE_CODE, array(), AccessManager::VIEW)) return $response;
|
||||||
|
|
||||||
|
// Render the edition template.
|
||||||
|
return $this->render('tdb-index');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1 +1,9 @@
|
|||||||
Hello World
|
{extends file="general_error.html"}
|
||||||
|
|
||||||
|
{block name="page-title"}{intl l='Page not found'}{/block}
|
||||||
|
{block name="content-title"}{intl l='Page not found'}{/block}
|
||||||
|
|
||||||
|
{block name="error-message"}
|
||||||
|
<h2>{intl l='The server returned a "404 Not Found"'}</h2>
|
||||||
|
<p>{intl l='The page you\'ve requested was not found. Please check the page address, and try again.'}</p>
|
||||||
|
{/block}
|
||||||
Reference in New Issue
Block a user