No route for Front:Sign:in()
- Zerig
- Člen | 70
David Matějka napsal(a):
ahoj, jak vypadá tvůj router?
<?php
use Nette\Application\Routers\RouteList,
Nette\Application\Routers\Route,
Nette\Application\Routers\SimpleRouter;
/**
* Router factory.
*/
class RouterFactory
{
/**
* @return Nette\Application\IRouter
*/
public function createRouter()
{
$router = new RouteList();
$router[] = new Route('index.php', 'Homepage:default', Route::ONE_WAY);
//$router[] = new Route('<presenter>/<action>[/<id>][/<is>]', 'Homepage:default');
//$router[] = new Route('<presenter>/chap/<chap>', 'Homepage:chapter');
$router[] = new Route('<presenter>[/<id>.html]', 'Homepage:default');
//$router[] = new Route('<presenter>/id/<id>', 'Homepage:id');
$router[] = new Route('<presenter>', 'Homepage:default');
$router[] = new Route('<presenter>/<action>', 'Homepage:default');
return $router;
}
}
Editoval Zerig (13. 6. 2020 21:11)