Erweiterung der Funktionalität, erste Anbindung an Editoren, Einbinden von JS-Bibliotheken

This commit is contained in:
2016-10-05 15:27:09 +00:00
parent 5a1dd25023
commit f65b4db286
26 changed files with 31969 additions and 140 deletions

View File

@@ -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);
}
}