CodeIgniter Forums

Full Version: helpers function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]deamra[/eluser]
i have some question, pls if you think tell me quickly. before that, thanks for help me ^^
" i have template CSS, i confess about fuse CSS with CI, do you know
$this->load->helper('url'); ? ---> ('url') whats that?
and
Auto-loading Helpers
(If you find that you need a particular helper globally throughout your application, you can tell CodeIgniter to auto-load it during system initialization. This is done by opening the application/config/autoload.php file and adding the helper to the autoload array.) ---> in User Guide.
Can you explain me about that? "

thanks and keep coding Smile

El Forum

[eluser]royduin[/eluser]
With
Code:
$this->load->helper("url");
You load the url helper in system/helpers/url_helper.php
If loaded you have access to those functions, see: http://ellislab.com/codeigniter/user-gui...elper.html

If you need these functions on only one page you call
Code:
$this->load->helper("url");

If you're using the url helper on multiple pages it's recommended to autoload this by adding "url" to the autoloader array:
Code:
$autoload['helper'] = array("url");
Found in application/config/autoload.php

El Forum

[eluser]deamra[/eluser]
ooh i see, thanks