Re: [symfony-users] sfRenderException

2009-12-16 Thread Gábor Fási
You do not return anything, so symfony presumes Success - that is why
it is looking for your Success template.

On Wed, Dec 16, 2009 at 22:04, cbsi.cnb  wrote:
>  public function executeError404($request)
>  {
>
>        header("HTTP/1.0 404 Not Found");
>
>        echo file_get_contents('http://www.zdnet.com/error.html');
>
>
>  }

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@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.




Re: [symfony-users] sfRenderException

2009-12-16 Thread Alexandru-Emil Lupu
Check ic that does not include any css with it.

sent via htc magic

On Dec 16, 2009 11:16 PM, "cbsi.cnb"  wrote:

There are errors being logged in Apache's php_error.log with the
following:

PHP Fatal error:  Uncaught exception 'sfRenderException' with message
'The template "error404Success.css.tpl" does not exist or is
unreadable in "".'

I have a directory with the structure as outlined below.

--app
|
--modules
 |
 --errors
  |
  --actions
   |
   --actions.class.php
  --templates
   |
   --error404Success.tpl

The actions.class.php file contains

class errorsActions extends sfActions
{

 public function executeError404($request)
 {

   header("HTTP/1.0 404 Not Found");

   echo file_get_contents('http://www.zdnet.com/error.html');


 }

}

and the error404Success.tpl file does not have any code as it is not
needed. I cannot determine why the app is looking for a file
"error404Success.css.tpl" instead of "error404Success.tpl".

--

You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to symfony-us...@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.

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@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.