How do i set the basepath, or base_url, or? what? ugh.. |
[eluser]Unknown[/eluser]
This is my first day with CI, I've just discovered it and I'm quite excited to see all that CI can do. I was following the video tutorials, when I came upon scaffolding in the "build a blog" video, things went wrong so I did a search and discovered scaffolding is no longer used. etc. etc. My problem is that it's pointing me to this url: http://127.0.0.1/CodeIgniter/index.php/blog/comments when it should be pointing me towards this url: http://mywebsitename.com/index.php/blog/comments so this part: "http://127.0.0.1/CodeIgniter/" should be this: "http://mywebsitename.com/" I read something about a basepath, or baseurl I need to change, but I can't find it?
[eluser]xwero[/eluser]
The baseurl can be found in the config/config.php file. A lot of people use the automatic base_url code to make it easy on themselves. The basepath is extracted for you in the index.php. but you have to use dirname(FCPATH) to get it. The BASEPATH constant is the path to the system directory. |
Welcome Guest, Not a member yet? Register Sign In |