Controller Plugin? |
[eluser]christatedavies[/eluser]
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. Chris
[eluser]PhilTem[/eluser]
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
[eluser]christatedavies[/eluser]
Thanks that sounds exactly like what I want. Cheers. |
Welcome Guest, Not a member yet? Register Sign In |