2008/5/22 Ian P. Christian <[EMAIL PROTECTED]>:

>  die('you must enable this controller');

Silly idea, what about checking if a special 'DEV' file resides in a
dedicated directory, eg.:

<?php
if (!file_exists(dirname(__FILE__).'/../DEV'))
{
  die('Dev controller can only be accessed from a development instance');
}

Then the doc should say that you must touch an empty DEV file at the
root of your project to get the dev controllers accessible, and of
course not to deploy or sync this file on the production server (which
could be added to the default rsync_exclude.txt file).

Okay, my example is crap and beginners may get lost with this, but you
get the base idea.

++

-- 
Nicolas Perriault
http://prendreuncafe.com - http://symfonians.net - http://sensiolabs.com
Phone: +33 660 92 08 76

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to