Exists anything more interesting than Smarty or Teng (..or php
Can you recommend something for me? And tell me "why this one"?
Moderator: General Moderators
Since you are rejecting two major choices, explain why you've rejected them, and what you think "more interesting" means.Llaik wrote:Hi, i'm looling around for some new interesting template engine.
Exists anything more interesting than Smarty or Teng (..or php)?
ThanksEverah wrote:If I were to choose between Smarty and Template Lite, I would go with Template Lite. It is a lighter, cleaner alternative and it is easier to use in my opinion.
<hijack>AKA Panama Jack wrote:ThanksEverah wrote:If I were to choose between Smarty and Template Lite, I would go with Template Lite. It is a lighter, cleaner alternative and it is easier to use in my opinion.
We are constantly upgrading Template Lite and adding new plugins. Plus we are constantly looking for new plugins developed by the users to be included with each new release.
We have had quite a bit of praise for the package and it is very secure without all of the needless overhead.
I'm a bit guilty here, in that I didn't give any substantial explanation yet. You can't expect PJ to defend his application against general statements on a blog.Jcart wrote:Do you say Template-Lite is as secure as Smarty? The reason I ask is Rojas blog states there was some security issues.
Can you offer a quick explanation why it's a security risk? Even for you own purposes?Roja wrote:I'm a bit guilty here, in that I didn't give any substantial explanation yet. You can't expect PJ to defend his application against general statements on a blog.Jcart wrote:Do you say Template-Lite is as secure as Smarty? The reason I ask is Rojas blog states there was some security issues.
The reason I didn't give substantial detail yet is half good, half lame. The lame part is that I'm insanely busy right now with personal issues, and a Memorial Golf Tournament that is taking over my town. (I do mean that entirely literally - a 7 minute drive is now over 45 minutes long).
The good reason is that I wanted to be as detailed as possible, and while I know for a fact that there is sufficient reason for MY concern, I don't have sufficient detail and testing completed to fairly document if there is sufficient reason for OTHER people to be concerned.
Stay tuned. I hope to update with further information 'soon'.
Yep, I am very curious myself.Hockey wrote:Can you offer a quick explanation why it's a security risk? Even for you own purposes?
Cheers
Code: Select all
$template_object = new Template_Lite;
$template_object->php_extract_vars = false;Code: Select all
var $php_extract_vars = true; // Set this to true if you want the $this->_tpl variables to be extracted for use by PHP code inside the template.Code: Select all
var $php_extract_vars = false; // Set this to true if you want the $this->_tpl variables to be extracted for use by PHP code inside the template.Code: Select all
in_array
Description
Will search an array for a matching value and return the set return value if a match is found.
Arguments
array - The array to search for the match.
match - The value to match inside the array
returnvalue - This is the value to be returned if a match is found.
Example
TEMPLATE
=============================
<input type="checkbox" name="test" value="1" { in_array array=$atribname[$i] match=$atrib returnvalue="CHECKED" }>
OUTPUT
=============================
<input type="checkbox" name="test" value="1" CHECKED>