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
You can edit your /etc/hosts file and add an entry for mysite.com that goes to your dev server ip address
Wikipedia article should tell location on windows/mac
http://en.wikipedia.org/wiki//etc/hosts#Location_in_the_file_system
(you may have to add one with http://www.mysite.com also)