Welcome Guest, Not a member yet? Register   Sign In
Ion Auth Integration, modify controller/views?
#1

[eluser]batfastad[/eluser]
Hi everyone

New to CI and using Ion Auth looks like it can save me alot of time, instead of me having to do all that stuff myself.

My question though is how do people generally integrate a library like this?
Ion Auth is supplied with a controller and views but to get it working exactly the way I would like I am tempted to write my own controller and views.
Are the controller/views supplied just intended to be sample code on which to base your own controller?
Or do people typically use them and integrate their views around it?

I don't want to go making loads of edits to the controller and views if it then makes it really difficult to update the library at a later date.
But I've got no problem in writing my own controller if that's the way people typically integrate Ion Auth.

Cheers, B
#2

[eluser]XMadMax[/eluser]
I used to create my GeneralAuthController with all stuff to login/logout/change pass/forgot pass/reset/activate/deactivate/create/delete/islogged, also an AdminAuthController.

My own controllers extends from the appropiate controller above.
#3

[eluser]batfastad[/eluser]
That's cool. I like the idea of extending the Ion Auth controller to add my own shortcut methods and views.

Thanks for the info!




Theme © iAndrew 2016 - Forum software by © MyBB