Welcome Guest, Not a member yet? Register   Sign In
confused about coding pattern
#1

[eluser]global_erp_solution[/eluser]
Hi, all, I have several questions about CI:
1. in java, we used to have business objects and data acces objects. Does the same apply here in CI? where models are actually data objects (no methods except getters and setters). What's the pattern in CI? where too put the files?
2. where can I get tutorial on CI's login mechanism? I'm talking about the full package, so once you're logged in, you may access the files in "protected" folders.
3. I saw that everytime you want to check whether a user is logged in or not, you need if(isset($_SESSION['user'])) on top of every "protected" pages. Is there any way to use the Filter pattern from Java in CI?

I'm trying to migrate from Java to PHP, so I have lots of confusion here. Thanks


Messages In This Thread
confused about coding pattern - by El Forum - 07-21-2012, 05:13 AM
confused about coding pattern - by El Forum - 07-21-2012, 09:05 AM
confused about coding pattern - by El Forum - 07-21-2012, 08:02 PM
confused about coding pattern - by El Forum - 07-22-2012, 02:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB