Welcome Guest, Not a member yet? Register   Sign In
how to place some php decision code insite a template iteration
#6

[eluser]Michael Ekoka[/eluser]
Hey dvoge, why would you wanna use the parser class if you already understand PHP and you're the one doing the templating. What's wrong with foreach{}? Common man, make your life simpler, go back to the view library. Template engines à la Smarty are for people aiming at fixing something that was not broken. Unless you don't trust your designer or he finds php really confusing, go back to the roots. Yes, PHP was itself created to be... a Template Engine.

Like the documentation says :
Quote:CodeIgniter does not require you to use this class since using pure PHP in your view pages lets them run a little faster. However, some developers prefer to use a template engine if they work with designers who they feel would find some confusion working with PHP.


Messages In This Thread
how to place some php decision code insite a template iteration - by El Forum - 01-16-2008, 08:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB