Welcome Guest, Not a member yet? Register   Sign In
Use one method in multiple controllers ?
#2

[eluser]Monarobase[/eluser]
A simple require_once on a file that contains just the method would do the job but would somewhat break the whole principle of codeigniter and I'm sure it's not the best way.

I have looked into the different ways I could use to call this method but normally helpers and libraries and don't call views...

I'm seriously thinking about duplicating my login method in all controllers unless someone can suggest a better way around this.


Messages In This Thread
Use one method in multiple controllers ? - by El Forum - 03-26-2010, 11:52 AM
Use one method in multiple controllers ? - by El Forum - 03-26-2010, 12:12 PM
Use one method in multiple controllers ? - by El Forum - 03-26-2010, 12:15 PM
Use one method in multiple controllers ? - by El Forum - 03-27-2010, 04:09 AM
Use one method in multiple controllers ? - by El Forum - 05-02-2010, 06:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB