• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Controller Plugin?

I have used Zend Framework extensively and now I am using CodeIgnitor for a project, but I want to write a custom controller plugin.

Is this possible in CI? Its basically a function that the front controller automatically calls, like a login check, to save the coder having to call the methods manually.

Any advise appreciated.


You want to create something called a MY_Controller which all your controllers will extend.
Have a look here to see what this actually is about: http://codeigniter.tv/a-10/Extending-the...and-beyond

Thanks that sounds exactly like what I want.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.