symfony1 - Symfony : I get a 500 instead of a 404 -


i've created custom 404 error pages symfony application, don't seem work. in dev see :

this request has been forwarded 404 error page action "blabla". 

but in prod, page blank; 500 error.

in logs, error :

php parse error:  syntax error, unexpected t_public in /var/www/myproject/apps/myapp/modules/default/actions/actions.class.php on line 7 

default/actions/actions.class.php following :

<?php /**  * error page page not found (404) error  *  */  public function executeerror404() {  }  public function executesecure() {  } ?> 

i followed this tutorial on symfony-check.org

i found answer myself :d i'd forgotten part of file :

class defaultactions extends sfactions {     public function executeerror404() {} } 

Comments

Popular posts from this blog

Javascript line number mapping -

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -