Login class |
[eluser]Unknown[/eluser]
Hello, I want to create a global function that checks if the user is logged in and redirect to specific page without calling it in every page any idea? thanks Yaron
[eluser]flaky[/eluser]
something like this could be done, there are some other ways also Code: //put this class in the application/libraries folder
[eluser]LuckyFella73[/eluser]
Like Flaky posted extending the CI Controller is a good way to do get the wanted result. A more detailed post about that can be found on Phil Sturgeons block: http://philsturgeon.co.uk/news/2010/02/C...ing-it-DRY |
Welcome Guest, Not a member yet? Register Sign In |