2010/3/29 ruigoncalves <skcra...@gmail.com>:
> Hi there!
>
> I'm trying to add a custom page to my web application for the times
> I'm performing maintenance. I'm trying to test the referred page on my
> development environment but always appear the symfony page. I had
> already created a module with a proper action and template and also
> configured those on the settings.yml file.

Add
check_lock:             true
to frontend/config/settings.yml

Create frontend/config/unavailable.php with custom text

Now you can login on server and perform

symfony project:disable frontend prod (to take service down)
symfony project:enable frontend prod (to take it back)

Redirecting default in routing.yml isn't a good solution, because
there are other routes.

Regards,
Michal

>
> Can anyone give me some help?
>
> Thanks in advance,
> Best regards!
>
> --
> 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
>
> To unsubscribe from this group, send email to 
> symfony-users+unsubscribegooglegroups.com or reply to this email with the 
> words "REMOVE ME" as the subject.
>

-- 
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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to