[eluser]Unknown[/eluser]
Just spent the last week learning the CI environment using VS.Php on VS 2010 pro by reproducint Derek's 9 + 20 minute videos and trying to make as many mistakes possible (not hard to do) and then learning from those and recovering.
Got along OK until dealing with Scaffolding which I had to admit was a neat tool to do rapid prototyping. I could get the 'http://.../blog/scaffolding' page to load fine, but when clicking on
'Create New Record' the base url changed to 'sample.com' faulting with a 404.
The problem is/was that VS/Apache
only wants to load pages referenced by '127.0.0.1:' followed by a RANDOMLY generated number. Finally found in phpinfo() THE variable to use and have updated the /config/config.php contents with:
$config['base_url'] = "http://".$_SERVER['HTTP_HOST']."/";
If there is a better, cleaner way to accomplish this please, please clue me in as I am an OLD CI newbie and can use all the help I can get.
Thanks,