Erweiterung der Funktionalität, erste Anbindung an Editoren, Einbinden von JS-Bibliotheken
This commit is contained in:
@@ -30,21 +30,25 @@ class FrontendRoute
|
||||
*/
|
||||
protected $request = array();
|
||||
|
||||
/**
|
||||
* @var FrontendController|null
|
||||
*/
|
||||
protected $controller = null;
|
||||
|
||||
protected $action = '';
|
||||
|
||||
|
||||
/**
|
||||
* FrontendRoute constructor.
|
||||
* @param string $route
|
||||
* @param bool $editable
|
||||
* @param array $request
|
||||
*/
|
||||
public function __construct($route, array $request = array())
|
||||
public function __construct($route, $editable = false, array $request = array())
|
||||
{
|
||||
$this->setRoute($route);
|
||||
$this->request = $request;
|
||||
$this->controller = new FrontendController($this->route, $request);
|
||||
$this->controller->setEditable($editable);
|
||||
$this->controller->init();
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +60,4 @@ class FrontendRoute
|
||||
$this->route = trim($route, " \t\n\r\0\x0B/");
|
||||
$this->routeParts = explode('/', $this->route);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user