Prekladova tabulka pohlti vseobecnejsie url
- MKI-Miro
- Člen | 278
Ahojte
Mam URL /sutaze/photogallery?competitionId=4
V routri to mam takto:
$router->addRoute('<presenter>[/<action>]', [
'presenter' => [
Route::Value => 'Homepage',
Route::FilterTable => [
// řetězec v URL => presenter
'nakupny-kosik' => 'Cart',
'oblubene' => 'Favorites',
],
],
'action' => [
Route::Value => 'default',
Route::FilterTable => [
],
],
]);
$router->addRoute('<presenter>[/<action>[/<id>]]', 'Homepage:default');
Ked otvorim danu URL tak dostanem 404. V tracy vidim na zeleno vyfarbeny riadok prekladovej tabulky
✓
<presenter>[/<action>]
presenter = Homepage
action = default
Sutaze:photogallery
competitionId = 4
a na modro vyfarbeny riadok
≈
<presenter>[/<action>[/<id>]]
presenter = Homepage
action = default
id = null
Sutaze:photogallery
id = null competitionId = 4
Najdivnejsie na tom je to ze na localhost mi to stranku najde ale na hostingu nie.
Nemte prosim nejaky tip?
Dakujem