Welcome Guest, Not a member yet? Register   Sign In
reusing common methods + redirect to current page
#5

[eluser]allibubba[/eluser]
thanks Mirage, i'll look a bit more into hooks, still learning the CI framework.

just checked and my current solution does not survive a failed login... but when using flash data i need to continually keep it alive eg:
keep_flashdata(); which means i have to have that in each function of my login/out check user process, which does seem like the wrong way to do things.

i kinda like the idea of setting and updating a cookie, but will look further into using the header() function. just that updating a cookie means i have to load a model and run a cookie update function for every view change, so maybe see if i can work something out with hooks. trying to follow 'DRY' (don't repeat yourself) principals as much as possible.

as for JS, yeah i completely agree (didn't want to start a debate on how many people do/don't use js), but for this round of exploration i want to do everything through CI, once i have a solid grasp of CI i'll be rebuilding with a robust JS front-end with mootools, but will also degrade to native CI functions if JS is disabled.


Messages In This Thread
reusing common methods + redirect to current page - by El Forum - 07-14-2008, 12:32 PM
reusing common methods + redirect to current page - by El Forum - 07-15-2008, 05:25 AM
reusing common methods + redirect to current page - by El Forum - 07-15-2008, 06:05 PM
reusing common methods + redirect to current page - by El Forum - 07-15-2008, 08:37 PM
reusing common methods + redirect to current page - by El Forum - 07-16-2008, 12:22 PM
reusing common methods + redirect to current page - by El Forum - 07-16-2008, 12:55 PM
reusing common methods + redirect to current page - by El Forum - 07-21-2008, 04:40 PM
reusing common methods + redirect to current page - by El Forum - 07-21-2008, 05:03 PM
reusing common methods + redirect to current page - by El Forum - 07-21-2008, 05:08 PM
reusing common methods + redirect to current page - by El Forum - 07-31-2008, 02:39 PM
reusing common methods + redirect to current page - by El Forum - 01-19-2009, 01:29 PM
reusing common methods + redirect to current page - by El Forum - 09-17-2010, 10:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB