Welcome Guest, Not a member yet? Register   Sign In
helpers function
#1

[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
#2

[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
#3

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




Theme © iAndrew 2016 - Forum software by © MyBB