Welcome Guest, Not a member yet? Register   Sign In
Form validation and re-population - Not Working
#4

[eluser]Henry Weismann[/eluser]
[quote author="jaswinder_rana" date="1229986356"]
Reason for checking login in the function is, there are other functions in the same class that maybe run even if user is not logged in like register(), login() etc. I am adding above code in DX_Auth library to let users to edit profile.

thanks[/quote]

Ok that makes sense but why do you check it again in the view? And you could create a controller for all non logged in views...for example the ones you mentioned (register, login etc...) would be in an auth controller or something like that.


Messages In This Thread
Form validation and re-population - Not Working - by El Forum - 12-21-2008, 06:11 PM
Form validation and re-population - Not Working - by El Forum - 12-21-2008, 11:11 PM
Form validation and re-population - Not Working - by El Forum - 12-22-2008, 10:52 AM
Form validation and re-population - Not Working - by El Forum - 12-22-2008, 11:46 AM
Form validation and re-population - Not Working - by El Forum - 12-22-2008, 11:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB