Search code examples
phpapachesymfony1symfony-1.4

Symfony 1.4 - blank page instead of 404


Where i can search the errors for this problem? I have:

http://www.mypage.com/module/action and http://www.mypage.com/frontend_dev.php/module/action

this working ok (this action and module exist)

if i open:

http://www.mypage.com/frontend_dev.php/module/actionewr

then i have error:

404 | Not Found | sfError404Exception
Action "module/actionewr" does not exist.
stack trace

this is OK, but if i open:

http://www.mypage.com/module/actionewr

then i have blank page. all is white, in source is empty.

how can i set 404 in Symfony 1.4? Now i can't check where this redirect my and modify this?

if i set in settings.yml:

  .actions:
    error_404_module:       default
    error_404_action:       error404

this working ok, but i would like add for this own module and action


Solution

  • You can configure it in settings.yml :

      .actions:
        error_404_module: module_name
        error_404_action: action_name