Welcome Guest, Not a member yet? Register   Sign In
Using Parser helper to list data from db
#2

[eluser]sophistry[/eluser]
Welcome to CI... and very nice first post.

This looks ideal - very clean code - and exactly the way CI is set up to help you organize.

The only suggestion I have (and I had to look hard for something to criticize) is to pick a good variable naming style: you should rename $query in your controller to $result_array or something like that so that it helps you remember that your model returns an array rather than the actual CI query object. Very minor point, but it will help you keep all your "ducks in a row" as you expand your code.


Messages In This Thread
Using Parser helper to list data from db - by El Forum - 08-28-2008, 08:06 AM
Using Parser helper to list data from db - by El Forum - 08-28-2008, 10:48 AM
Using Parser helper to list data from db - by El Forum - 08-28-2008, 07:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB