Hello,
I'm working on a web app with phalcon since april, and encoutering my first unsolvable problem :
I've got a simple html page located at /public/jeux/[jeu_name]/perdu/perdu.phtml. It contains some <img src="./header_mobile"> with relative paths to images.
All goes well when I load the phtml file directly, with full path to the file in browser.
BUT, when I load this view from my dedicated controller :
public function indexAction() {
$this->persistent->id_jeu=$_GET['id'];
$jeuDir=Jeu::findFirstByid($this->persistent->id_jeu)->directory;
$this->view->setViewsDir('/var/www/html/game-generator/public/'.$jeuDir);
$this->dispatcher->forward(
array(
"action" => "perdu"
));
}
public function formAction(){
$this->view->setMainView('form/form');
}
public function perduAction(){
$this->view->setMainView('perdu/perdu');
}
Images don't show, even if Firebug's network pannels says '200 OK' about images GET requests.
I really need help on this, can't figure out why this isn't working.. halp ! Can do screenshots if needed, or if I wasn't clear in my explanations (frenchie inside, sry ^^ )
Thanks !