those functions need to be within a class to actually work ;)

On 23/02/2011 18:00, Manu wrote:
Hi, I've created custom 404 error pages for my symfony application,
but they don't seem to work. In dev I see :
     This request has been forwarded to a 404 error page by the action
"blabla".

But in prod, the page is just blank; I get a 500 error.

In the logs, the error is :
     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 is the following :
<?php
/**
  * Error page for page not found (404) error
  *
  */

public function executeError404()
{

}

public function executeSecure()
{

}
?>

What is going on ?


--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to