Welcome Guest, Not a member yet? Register   Sign In
Code logic in codeigniter
#5

You've removed most of the conditionals from the view, so the previous comments don't really make as much sense.

You should probably change your get_user_details() method in MY_Controller to be protected instead of public, since public methods in the controller are routable (unless they start with an underscore). So someone could visit /account/get_user_details/{$user_id}. It might not get them anything useful, but you never know.
Reply


Messages In This Thread
Code logic in codeigniter - by sebastianvirlan - 08-24-2015, 01:54 PM
RE: Code logic in codeigniter - by mwhitney - 08-25-2015, 08:55 AM
RE: Code logic in codeigniter - by cartalot - 08-25-2015, 11:38 AM
RE: Code logic in codeigniter - by mwhitney - 08-25-2015, 01:41 PM
RE: Code logic in codeigniter - by cartalot - 08-25-2015, 03:34 PM
RE: Code logic in codeigniter - by mwhitney - 08-26-2015, 08:22 AM
RE: Code logic in codeigniter - by cartalot - 08-25-2015, 08:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB