my routes
$router = new Phalcon\Mvc\Router();
$router->add('/login/', array(
'controller' => 'user',
'action' => 'login'
));
$router->add('/signup/', array(
'controller' => 'user',
'action' => 'signup'
));
$router->notFound(array(
'controller' => 'user',
'action' => 'show404'
));
return $router;
my controler
class UserController extends ControllerBase
{
public function loginAction()
{
}
public function signupAction()
{
}
public function show404Action()
{
$this->response->setHeader(404, 'Not Found');
$this->view->pick('404/404');
}
}
test
site.com/login/ -> ok
site.com/signup/ -> ok
site.com/test/ -> TestController handler class cannot be loaded <- wtf?
how to make?