Kirk
Well-known member
So i've created this admin route called Quiz
Route Class Code:
The ControllerAdmin
I've created the quiz_index template in the admin templates which has the following
But when i try to go to the Quiz link in the admin panel i get the following error
What did I do wrong?
Route Class Code:
PHP:
<?php
class KAH_Quiz_Route_PrefixAdmin_Quiz implements XenForo_Route_Interface
{
public function match($routePath, Zend_Controller_Request_Http $request, Xenforo_Router $router)
{
return $router->getRouteMatch('KAH_Quiz_ControllerAdmin_Quiz', 'Index', 'Quiz', $routePath);
}
}
The ControllerAdmin
PHP:
<?php
class KAH_Quiz_ControllerAdmin_Quiz extends XenForo_ControllerAdmin_Abstract
{
public function actionIndex()
{
$text = 'This is going to be developed developed soon';
$viewParams = array(
'text' => $text
);
return $this->responseView('KAH_Quiz_ViewAdmin_Quiz', 'quiz_index', $viewParams);
}
}
I've created the quiz_index template in the admin templates which has the following
Code:
{$text}
But when i try to go to the Quiz link in the admin panel i get the following error
Route Quiz/ could not be found.
What did I do wrong?