3
What would be the difference between them ? Because in my project I used both and could not identify the difference.
3
What would be the difference between them ? Because in my project I used both and could not identify the difference.
5
Very simple, base_url() in codeigniter returns the base url, let’s say your site is: http://meusite.com.br vc calling the function base_url() will return this.
If you pass the parameter, it will return the base + parameter, example: say you want to access an article from your blog.
echo base_url("blog/post/123");
http://meusite.com.br/blog/post/123
For more information visit https://www.codeigniter.com/user_guide/helpers/url_helper.html#base_url
Browser other questions tagged php codeigniter
You are not signed in. Login or sign up in order to post.