Welcome Guest, Not a member yet? Register   Sign In
No echo or <?= !
#1

[eluser]Hamed[/eluser]
Is it possible that we use {$var} instead of
Code:
<? echo $var ?>
<?= $var ?>
#2

[eluser]boltsabre[/eluser]
You're looking for a template system:

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

Don't forget to check out both the great CI user documentation
http://ellislab.com/codeigniter/user-guide
And google before posting on here. While we don't mind helping people on this forum, we do expect them to try it for themselves first. A 10 second google hunt (I don't know, how about searching for "codeigniter template system") would have given you many results ready for you to explore!
#3

[eluser]Hamed[/eluser]
Which one is faster parser or echo?
Why most CMS user parser?
#4

[eluser]boltsabre[/eluser]
Yawn... no thanks for answering your question - just another "give me the answer" post.

Here's 2 ideas:
1. Learn some manners!
2. User your research skills and google it!
#5

[eluser]Hamed[/eluser]
Thanks.
Although it look echo is faster, Parser make codes much readable and It is useful too!!!
#6

[eluser]boltsabre[/eluser]
No worries. Yes, you are correct, using a template system will add overhead, but as you mentioned it has it's benefits. It all comes down to your requirements. Good luck.
#7

[eluser]Samus[/eluser]
[quote author="boltsabre" date="1337612420"]Yawn... no thanks for answering your question - just another "give me the answer" post.

Here's 2 ideas:
1. Learn some manners!
2. User your research skills and google it![/quote]
lol
#8

[eluser]InsiteFX[/eluser]
Code:
<?php echo $var; ?>




Theme © iAndrew 2016 - Forum software by © MyBB