Hi,
I have some code that retrieves the production URL and check some staff.
Im prefer to work in the dev invoroment so I have to write in my code something like this
<?php if(sfConfig::get('sf_environment') == 'dev'): ?>
<?php $url = "http://www.mysite.com/foobar" ?>
<?php else: ?>
<?php $url = $sf_request->getUri() ?>
<?php endif; ?>
Is there any smarter way to operate production URL while im working in dev enviroment? Or do you do this kind of things?
Javi