Welcome Guest, Not a member yet? Register   Sign In
I have my own Function file. How can i use that?
#5

[eluser]mjsilva[/eluser]
Imaging that your file is called my_functions.php

1) place it in application/helpers rename it my_functions_helper.php
2) go to autoload.php under application/config, and auto-load it by adding your helper name to $autoload['helper'] array.
Code:
$autoload['helper'] = ('my_functions_helper');

And that's it, after doing this you can call your function everywhere.


Messages In This Thread
I have my own Function file. How can i use that? - by El Forum - 11-02-2009, 01:28 AM
I have my own Function file. How can i use that? - by El Forum - 11-02-2009, 01:40 AM
I have my own Function file. How can i use that? - by El Forum - 11-02-2009, 02:47 AM
I have my own Function file. How can i use that? - by El Forum - 11-02-2009, 11:20 AM
I have my own Function file. How can i use that? - by El Forum - 11-02-2009, 12:37 PM
I have my own Function file. How can i use that? - by El Forum - 11-03-2009, 03:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB