![]() |
Forum Help - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Forum Help (/showthread.php?tid=50687) |
Forum Help - El Forum - 04-04-2012 [eluser]mStreet[/eluser] Hello! I'm quite new to OOP as well as Codeigniter, so please bare with me. Currently I'm just fooling around to just try and get a hang of it all. So I'm building a forum at the moment. I got stuck on the categories, so I searched all over the place hoping to find a solution, which I did (almost). Then I got stuck trying to print it all out. I got everything ready and the var dump looks like this: Vardump IMAGE It looks exactly like it should but I just can't manage to echo it out correctly. Here's the controller: Code: function categories($parent = NULL) { Thanks! Forum Help - El Forum - 04-04-2012 [eluser]cbwd[/eluser] I'd suggest a less complex project for your first attempt at CI/OOP. There's a lot to think about with developing a forum. Might be better to do a few simple CRUD forms to get the hang of things first. For starters, have a look into how MVC should work, http://ellislab.com/codeigniter/user-guide/overview/mvc.html First thing is getting the db interaction out of the controller and into a model. How do you want the output to look? What does it look like at the moment? |