Welcome Guest, Not a member yet? Register   Sign In
Direct Access to Model or to use Library?
#4

[eluser]bunal[/eluser]
Thanks Wink

Another quick question.

For security do you prefer splitting model methods.

For example:

Code:
function update_user($username,$data){
  SQL(update user set d = $data where username = $username)
}

Code:
function update_mydetail($data){
  $username = $my_username_in_session
  SQL(update user set d = $data where username = $username)
}

And also do you prefer writing methods for admin and users seperate, or maybe also in different model files?


Messages In This Thread
Direct Access to Model or to use Library? - by El Forum - 01-14-2010, 03:26 PM
Direct Access to Model or to use Library? - by El Forum - 01-14-2010, 03:54 PM
Direct Access to Model or to use Library? - by El Forum - 01-14-2010, 04:17 PM
Direct Access to Model or to use Library? - by El Forum - 01-14-2010, 04:26 PM
Direct Access to Model or to use Library? - by El Forum - 01-14-2010, 04:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB