Homepage presenter nefunguje zistenie requestu $this->getHttpRequest()->isMethod(„GET“)
- Tomas8698
- Člen | 109
Ahojte,
v HomepagePresenteri mi nechce fungovat prikaz
$this->getHttpRequest()->isMethod(„GET“) v podmienke if. Neviete kde
by mohla byt chyba?
Moj Router vyzera takto:
$router->addRoute('<presenter>/<path>', 'Homepage:default');
$router->addRoute('<presenter>/<path>/', 'Gallery:default');
$router->addRoute('<presenter>/<width>/<height>/<fullPath>', 'Images:default');
a v Presenter:
public static function actionDefault($path){
if ($this->getHttpRequest()->isMethod('GET')){
....
}
Za odpoved dakujem pekne :)