Result list page with links to detail page |
(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. |
Messages In This Thread |
Result list page with links to detail page - by rick.emmet - 11-10-2014, 01:48 PM
RE: Result list page with links to detail page - by Tim Brownlaw - 11-10-2014, 02:49 PM
RE: Result list page with links to detail page - by RobertSF - 11-11-2014, 06:51 PM
RE: Result list page with links to detail page - by rick.emmet - 11-13-2014, 12:54 PM
RE: Result list page with links to detail page - by RobertSF - 11-13-2014, 01:21 PM
|