|
|
|
@ -59,7 +59,7 @@ class FrontController
|
|
|
|
|
|
|
|
|
|
foreach ($this->rights[$role] as $controllerName) {
|
|
|
|
|
|
|
|
|
|
if (strcmp($controllerName,$target[0])===0) {
|
|
|
|
|
if (strcmp($controllerName, $target[0])===0) {
|
|
|
|
|
$controllerClass = '\Controller\\' . $target[0];
|
|
|
|
|
$controller = new $controllerClass();
|
|
|
|
|
$controller->{$target[1]}($params);
|
|
|
|
@ -87,7 +87,7 @@ class FrontController
|
|
|
|
|
$this->router->map('POST', '/submitForm', array($controller['Candidate'], 'submitForm'), 'submitForm');
|
|
|
|
|
$this->router->map('POST', '/addQuestion', array($controller['Admin'], 'addQuestion'), 'addQuestion');
|
|
|
|
|
$this->router->map('POST', '/addResponse', array($controller['Admin'], 'addResponse'), 'addResponse');
|
|
|
|
|
$this->router->map('POST', '/continueResponse', array($controller['Admin'], 'continueResponse'),'continueResponse');
|
|
|
|
|
$this->router->map('POST', '/continueResponse', array($controller['Admin'], 'continueResponse'), 'continueResponse');
|
|
|
|
|
$this->router->map('POST', '/createForm', array($controller['Admin'], 'createForm'), 'createForm');
|
|
|
|
|
$this->router->map('POST', '/addKeyword', array($controller['Admin'], 'addKeyword'), 'addKeyword');
|
|
|
|
|
$this->router->map('GET', '/goToAdmin', array($controller['Admin'], 'goToAdmin'), 'goToAdmin');
|
|
|
|
|