我无法在 phalcon 中注册自定义路线。我不知道是什么问题。
$di['router'] = function () {
return require __DIR__ . '/config/routes.php';
};
在我有的路线文件中
$router = new Phalcon\Mvc\Router();
//$router->setUriSource(Router::URI_SOURCE_SERVER_REQUEST_URI);
$router->add('/confirm/{code}/{email}', array(
'controller' => 'user_control',
'action' => 'confirmEmail'
));
/*$router->add('/reset-password/{code}/{email}', array(
'controller' => 'user_control',
'action' => 'resetPassword'
));*/
return $router;
当我去 /confirm/32sadfasdfwef/www@gmail.com
我正进入(状态
Ilm\Frontend\Controllers\ConfirmController handler class cannot be loaded
它的多模块应用。
And if i do die() in $di['router'] it does not do anything.