CodeIgniter Forums
Do CI template parser support control statements? - 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: Do CI template parser support control statements? (/showthread.php?tid=9525)



Do CI template parser support control statements? - El Forum - 06-28-2008

[eluser]EEssam[/eluser]
Hi,

I'm wondering if CI template parser support control statements (if, elseif, else). I can't find that in the user guide.

Thanks.


Do CI template parser support control statements? - El Forum - 06-28-2008

[eluser]Pascal Kriete[/eluser]
It does not. The template parser is very simple, but you could extend it to fit your needs.


Do CI template parser support control statements? - El Forum - 06-28-2008

[eluser]EEssam[/eluser]
Hi,

So it's not the same template parser used here:

http://expressionengine.com/blog/article_list/category/building_a_bug_tracker/


Do CI template parser support control statements? - El Forum - 06-28-2008

[eluser]Pascal Kriete[/eluser]
No, expressionengine is a standalone product, with it's own libraries. The ci parser doesn't even come close.


Do CI template parser support control statements? - El Forum - 06-28-2008

[eluser]EEssam[/eluser]
But what does this mean then "ExpressionEngine 2.0: fully CodeIgnited!"

http://ellislab.com/blog/entry/expressionengine_20_fully_codeignited/


Do CI template parser support control statements? - El Forum - 06-28-2008

[eluser]Pascal Kriete[/eluser]
That means that ExpressionEngine will be based on CodeIgniter - not CodeIgniter will be ExpressionEngine. Like any application it will have custom libraries and helpers. If you look at the code for the EE template parser (download the free version, it's in: system/core/core.template.php) you will see that it is very specific to the application.


Do CI template parser support control statements? - El Forum - 06-28-2008

[eluser]EEssam[/eluser]
OK, I got it. Thanks for the clarification Smile