Skip to content Skip to sidebar Skip to footer

CodeIgniter get site url

Reading Time: < 1 minute

How to get site url of the codeigniter.You can use this method in the controller,model and view files.
First, you have to call this URL Helper file.


// this is get from config file.
// this is also get from config file.
// core php server variables

Also you can use following script to get site url in view files.

 echo site_url('buyer/editProfile/50');
// output like this.