Disable default Symfony Modules and Errors

on Saturday, March 21, 2009

To disable the default symfony pages like "Symfony Project Created", "Symfony 404 Page Not Found" errors to customized error message, follow the steps

1. In your project root select your application, then open the settings.yml file from config folder.

2. After that enable the selected modules which you want to work, after that edit your settings.yml below .actions as follows.,

default_module: your_module_name

default_action: your_action_name

3. After that edit your routing.yml file as just change the default module to your_module_name which is mentioned in settings.yml

4. Now Clear the Cache and run your project. You Won't get any symfony pages and error messages.

Hope you will Enjoy.....! :)


Post a Comment