Matthew Hawley
Well-known member
I am trying to create a public route.
This is my ControllerPublic/Directory.php code
This is my Route/Prefix/Directory.php code
When I go to .com/directory i get
Route directory/ could not be found.
Any suggestions?
This is my ControllerPublic/Directory.php code
Code:
<?php
class CF_Directory_ControllerPublic_Directory extends XenForo_ControllerPublic_Abstract
{
public function actionIndex()
{
// send to template for display
return $this->responseView('CF_Directory_Index', 'cf_directory_index', $viewParams);
}
This is my Route/Prefix/Directory.php code
Code:
<?php
class CF_Directory_Route_Prefix_Index implements Xenforo_Route_Interface
{
public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router)
{
return $router->getRouteMatch('CF_Directory_ControllerPublic_Directory', $routePath, 'directory');
}
}
When I go to .com/directory i get
Route directory/ could not be found.
Any suggestions?