Welcome Guest, Not a member yet? Register   Sign In
Do CI template parser support control statements?
#1

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

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

[eluser]EEssam[/eluser]
Hi,

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

http://expressionengine.com/blog/article...g_tracker/
#4

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

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

http://ellislab.com/blog/entry/expressio...deignited/
#6

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

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




Theme © iAndrew 2016 - Forum software by © MyBB