Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14346

Some functions in Controller

$
0
0
hi, I have any controllers with some functions


PHP Code:
class Foo extends CI_Controller
{
 
  private function _bar() {
 
     // something
 
  }

I need function _bar use in other controllers. Now I useing this function _bar repeat everytime in other controllers.
How not to write one and the same function all the time?


Viewing all articles
Browse latest Browse all 14346

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>