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

[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
#2

[eluser]keevitaja[/eluser]
maybe http://ellislab.com/codeigniter/user-gui...arser.html
#3

[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)
#4

[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.




Theme © iAndrew 2016 - Forum software by © MyBB