How to call the function inside the function in the encoder help
source link: https://www.codesd.com/item/how-to-call-the-function-inside-the-function-in-the-encoder-help.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
How to call the function inside the function in the encoder help
I want to access function inside function in code-igniter helper
you can use a helper function inside another function provided that you have loaded/extended that helper and the function you want to use is not private.
have you tried something like this:
HELPER
funtion helper1($var) {
$CI =& get_instance();
/** you cannot use $this inside helper */
// call another function
helper_function2();
}
helpers are global so you can use helper functions anywhere in you code as long as you have loaded the helper first. you can load your helper in the constructor of your controller: $this->load->helper('new_helper');
Related Articles
How to call the common help function outside the application folder?
How to call the WebMatrix Helper function from jQuery AJAX?
Android: How to call the function of the activity inside the Tabhost tab
How to call a function of a class of another class in the kivy Pong ball game
How to call the sql ABC function defined in the DEF package using TOAD ORACLE
How to call the function of a cell when a scrollViewDidEndDecelerating occurs from UiCollectionView
How to call a function on the loading of the Div tag
Angular2 - How to call the component function out of the application
AngularJS: How to call the function on the last iteration of ng-repeat?
How to call the function between 2 .lua
How to call the jquery function by its name
How to call the knockout function
How to call the VBA function from Excel cells?
How to call the worksheet function from the word
How to call the main function in the C file by JNI in Android?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK