I’m new in CI as well in php. I have a problem that’s bugging me for two days now:
when i click on a link in my admin header(say: Articles) it takes me to: http://www.example.com/admin/articles, which is ok. If now i try to click on another link in the header (say: Add articles), the url becomes: http://www.example.com/admin/admin/add_articles – it adds an extra admin to my url. if i click again on Articles, the url will be: http://www.example.com/admin/admin/admin/articles, and so on.
Do you have any idea why is this happening?
Thanks
You have 2 choice, the first is that you wrote in every link base_url()
OR
you can use a built in helper:
in your example:
Then that will create this HTML code: