SHOW:
|
|
- or go back to the newest paste.
| 1 | - | $frontRouter[] = new Route('[!<lang=cs [a-z]{2}>/<id>]', array(
|
| 1 | + | $frontRouter[] = new Route('[!<lang=cs [a-z]{2}>/]<id [0-9]+>', array(
|
| 2 | 'presenter' => 'Pages', | |
| 3 | 'action' => 'default', | |
| 4 | 'id' => array( | |
| 5 | Route::FILTER_IN => callback($container->modelLoader->pages, 'getIdByUrl'), | |
| 6 | Route::FILTER_OUT => callback($container->modelLoader->pages, 'getUrlById'), | |
| 7 | ))); | |
| 8 | ||
| 9 | - | $frontRouter[] = new Route('[!<lang=cs [a-z]{2}>/]<presenter>/<action>[/<id>]', 'Homepage:default'); |
| 9 | + | $frontRouter[] = new Route('[!<lang=cs [a-z]{2}>/]<presenter>[/<action>][/<id [0-9]+>]', 'Homepage:default'); |