form validation help PLEASE

#30
[eluser]JHackamack[/eluser]
A few suggestions:

move: if(logged in)
{///load the login form in the header
$this->load->view('login_view', $data);
}
else
{//load the logged in portion with the profile/inbox/notification links
$this->load->view('logged_view', $data);
}
into your header_view file

so you don't have to deal with it every function (and makes changes easier)

Unless you're going to be doing alot with the login controller i wouldn't see the harm in moving the login function to the mains as long as everytime a user loges in they are always directed to the mains/index function (or something similar)


Messages In This Thread
form validation help PLEASE - by El Forum - 01-09-2010, 12:34 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:20 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:21 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:24 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:28 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:31 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:31 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:33 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:35 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:42 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:43 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:45 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:54 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:55 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:01 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:03 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:05 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:08 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:09 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:09 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:10 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:13 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:16 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:20 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:20 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:24 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:27 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:32 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:41 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:45 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:45 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:48 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:51 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:56 AM
form validation help PLEASE - by El Forum - 01-09-2010, 03:13 AM
form validation help PLEASE - by El Forum - 01-09-2010, 10:51 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:42 PM
form validation help PLEASE - by El Forum - 01-09-2010, 02:45 PM
form validation help PLEASE - by El Forum - 01-09-2010, 02:52 PM
form validation help PLEASE - by El Forum - 01-09-2010, 02:54 PM
form validation help PLEASE - by El Forum - 01-09-2010, 02:54 PM
form validation help PLEASE - by El Forum - 01-09-2010, 02:56 PM
form validation help PLEASE - by El Forum - 01-09-2010, 02:59 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.