No echo or <?= ! - 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: No echo or <?= ! (/showthread.php?tid=51860) |
No echo or <?= ! - El Forum - 05-21-2012 [eluser]Hamed[/eluser] Is it possible that we use {$var} instead of Code: <? echo $var ?> No echo or <?= ! - El Forum - 05-21-2012 [eluser]boltsabre[/eluser] You're looking for a template system: http://ellislab.com/codeigniter/user-guide/libraries/parser.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! No echo or <?= ! - El Forum - 05-21-2012 [eluser]Hamed[/eluser] Which one is faster parser or echo? Why most CMS user parser? No echo or <?= ! - El Forum - 05-21-2012 [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! No echo or <?= ! - El Forum - 05-21-2012 [eluser]Hamed[/eluser] Thanks. Although it look echo is faster, Parser make codes much readable and It is useful too!!! No echo or <?= ! - El Forum - 05-21-2012 [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. No echo or <?= ! - El Forum - 05-21-2012 [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 No echo or <?= ! - El Forum - 05-21-2012 [eluser]InsiteFX[/eluser] Code: <?php echo $var; ?> |