Best pratice for an MVC CodeIgniter development. |
[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
[eluser]keevitaja[/eluser]
maybe http://ellislab.com/codeigniter/user-gui...arser.html
[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)
[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. |
Welcome Guest, Not a member yet? Register Sign In |