Welcome Guest, Not a member yet? Register   Sign In
Result list page with links to detail page
#5

(This post was last modified: 11-13-2014, 06:14 PM by RobertSF.)

(11-13-2014, 12:54 PM)rick.emmet Wrote: I didn't want to use the previous code I wrote as it is procedural and I want to use OO code with CI and take advantage of all CI has to offer

You're welcome, Rick. To make it less procedural, you could take the object returned by your query, and add the links as new properties. If you've not done that dynamically in PHP, here's a page explaining how. Then pass the object to the table->generate class. I've not done it myself, but it should work.

Edit: Wait... that just moves the procedural code to a different part. Guess I don't know how the could be done without a loop through.
Reply


Messages In This Thread
RE: Result list page with links to detail page - by RobertSF - 11-13-2014, 01:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB