Builtin Helper
Builtin Helper

Builtin Helper - Helper created by CodeIgniter Framework, In Helper there are function.

some most common use helper

Array Helper
CAPTCHA Helper
Cookie Helper
Date Helper
Download Helper
Email Helper
File Helper
Form Helper
HTML Helper
Number Helper
Security Helper
String Helper
Text Helper
URL Helper

etc many more

Load Helper
$this->load->helper('helpername');

URL Helper

URL Helper
This function return your site URL, as specified in your
config file. This is will be added index.php in URL

Load Helper-
$this->load->helper('url');

Function -
site_url()
base_url()
current_url()
uri_string()
index_page()
anchor()
mailto()
etc.

base_url()

base_url function return the path of the url
<?php echo base_url(); ?>

uri_string()

To return an URI string

suppose
http://xyz-site.com/topic/id/23

will return topic/id/23


Previous
Next