Welcome Guest, Not a member yet? Register   Sign In
Some functions in Controller
#1

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?

Reply


Messages In This Thread
Some functions in Controller - by rolly - 11-17-2017, 07:25 AM
RE: Some functions in Controller - by neuron - 11-17-2017, 08:31 AM
RE: Some functions in Controller - by Narf - 11-17-2017, 11:16 AM
RE: Some functions in Controller - by neuron - 11-18-2017, 05:54 AM
RE: Some functions in Controller - by kilishan - 11-17-2017, 09:32 AM
RE: Some functions in Controller - by rolly - 11-17-2017, 11:12 AM
RE: Some functions in Controller - by dave friend - 11-18-2017, 07:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB