Welcome Guest, Not a member yet? Register   Sign In
Best pratice for an MVC CodeIgniter development.


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.


maybe http://ellislab.com/codeigniter/user-gui...arser.html

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)


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.


Theme © iAndrew 2016 - Forum software by © MyBB