Welcome Guest, Not a member yet? Register   Sign In
Controller Plugin?
#1

[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
#2

[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
#3

[eluser]christatedavies[/eluser]
Thanks that sounds exactly like what I want.

Cheers.




Theme © iAndrew 2016 - Forum software by © MyBB