Best pratice for an MVC CodeIgniter development. - 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: Best pratice for an MVC CodeIgniter development. (/showthread.php?tid=33603) |
Best pratice for an MVC CodeIgniter development. - El Forum - 09-01-2010 [eluser]lewebdalex[/eluser] Hi, I'm trying to clean my actual code as much as possible. And to develop following the best MVC method. This is my following question : If I want to keep my View file as clean as possible : meaning, no PHP/Code or so ever (ea: foreach, loops, etc.) What's the best way to handle those loops and code ? Hoping to be clear enough. Cheers, Alexis Best pratice for an MVC CodeIgniter development. - El Forum - 09-01-2010 [eluser]keevitaja[/eluser] maybe http://ellislab.com/codeigniter/user-guide/libraries/parser.html Best pratice for an MVC CodeIgniter development. - El Forum - 09-01-2010 [eluser]MartÃn[/eluser] Hi Alexis, I think that maybe you can use a parser class. Search it in the official documentation and you can will see some examples. Regards. (sorry for my english) Best pratice for an MVC CodeIgniter development. - El Forum - 09-01-2010 [eluser]lewebdalex[/eluser] Hi, In fact, I'm coding with CI for 5 months now and I never took the time to watch this class. This is exaclty what I needed. Thanks a lot. Alexis. |