Author |
Message |
Topic: Smarty 3.1 - New template function |
Sybux2000
Replies: 1
Views: 15683
|
Forum: Tips and Tricks Posted: Mon Oct 10, 2011 9:25 pm Subject: Smarty 3.1 - New template function |
Hi,
I've just updated from 2.x to 3.1 and discover the new template usage.
I've redifined my loader as follow :
$smarty->setTemplateDir(array(
'default' => $BASE_FILE . $CFG->T ... |
Topic: Creating a little function for a template |
Sybux2000
Replies: 1
Views: 3226
|
Forum: General Posted: Tue Nov 24, 2009 9:16 pm Subject: Creating a little function for a template |
Hi,
I'm using the great upcoming smarty 3 B5
I'd like to display some simple red or green flag depending on the state of a value.
As I've got many values to display, I'd like to know if I can wri ... |
Topic: SmartyValidate and local vars |
Sybux2000
Replies: 1
Views: 6293
|
Forum: Plugins Posted: Mon Apr 18, 2005 5:02 pm Subject: SmartyValidate and local vars |
Hi,
I'want to check a password in a form.
My password is stored in a varible $SESSION.
How can I pass it to the validate function so that it can be check ?
I've try the following codes but t ... |
Topic: SmartyValidate : how to validate an URL or empty field |
Sybux2000
Replies: 3
Views: 8652
|
Forum: Plugins Posted: Sat Apr 16, 2005 10:59 pm Subject: SmartyValidate : how to validate an URL or empty field |
The only way I've found is to write a new function. Is that the right one ? |
Topic: SmartyValidate and html_select_date |
Sybux2000
Replies: 2
Views: 8505
|
Forum: Plugins Posted: Sat Apr 16, 2005 10:59 pm Subject: SmartyValidate and html_select_date |
Hi,
i'm using {html_select_date} method to generate a calendar. All is working fine in my application and now, I want to add some field control.
I've written the following code but it fails and ... |
Topic: SmartyValidate : how to validate an URL or empty field |
Sybux2000
Replies: 3
Views: 8652
|
Forum: Plugins Posted: Fri Apr 15, 2005 10:00 pm Subject: SmartyValidate : how to validate an URL or empty field |
Hi,
All is in the subject ! Is it possible to validate at the same time if the field is empty and if not, if it's an URL (for exemple).
Thx |
Topic: SmartyValidate 2.4 released |
Sybux2000
Replies: 22
Views: 41077
|
Forum: Add-ons Posted: Thu Apr 14, 2005 8:43 pm Subject: SmartyValidate 2.4 released |
Oops...
So I think I've not understand well the debug function.
All is working ok so... I think I should go to bed and stop coding à 11PM !! |
Topic: SmartyValidate 2.4 released |
Sybux2000
Replies: 22
Views: 41077
|
Forum: Add-ons Posted: Thu Apr 14, 2005 7:56 pm Subject: SmartyValidate 2.4 released |
I've got an error when enabling smarty debugging.
On each field that I want to validate, I've got the following message :
<br /><b>Notice</b>: Undefined index: gamen ... |
Topic: Create template function |
Sybux2000
Replies: 3
Views: 5958
|
Forum: General Posted: Tue Mar 22, 2005 5:40 pm Subject: Create template function |
If I ask the question, it's beacause i've find it in the manual.
If you can specify where is it, it should be nice |
Topic: Create template function |
Sybux2000
Replies: 3
Views: 5958
|
Forum: General Posted: Tue Mar 22, 2005 4:11 pm Subject: Create template function |
Hello,
is it possible to create my own template functions such as {html_table}, {html_options} etc...
Thx
Sybux |
Topic: Php variable and smarty variable |
Sybux2000
Replies: 2
Views: 4762
|
Forum: General Posted: Mon Mar 21, 2005 6:02 pm Subject: Php variable and smarty variable |
nobody know ? or is it just impossible ? |
Topic: Make an if in a template |
Sybux2000
Replies: 1
Views: 3800
|
Forum: General Posted: Mon Mar 21, 2005 6:00 pm Subject: Make an if in a template |
Hi,
I'd like to know if it's possible to make an IF in the template file and if not, here is my problem.
I've got 2 variables, 1 with a message and the second with the type of message.
I'm lo ... |
Topic: Php variable and smarty variable |
Sybux2000
Replies: 2
Views: 4762
|
Forum: General Posted: Sun Feb 27, 2005 7:53 am Subject: Php variable and smarty variable |
Hi,
as many of us, I'm using many variable in my php code.
Is there a way to use them directly in smarty wittout using the "->assign" function ?
Thx
Sybux |
|