|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
Author |
Message |
Topic: SmartyValidate 2.7 problems with "assign" param |
barma3
Replies: 1
Views: 7368
|
Forum: Add-ons Posted: Thu Apr 13, 2006 3:57 pm Subject: SmartyValidate 2.7 problems with "assign" param |
I cann't assign validate message to template var.
My PHP code is:
SmartyValidate::register_validator('fst', 'fst', 'notEmpty', false, false, 'trim');
My template code is:
{valid ... |
Topic: SmartyValidate 2.7 released |
barma3
Replies: 49
Views: 291504
|
Forum: Add-ons Posted: Sun Apr 09, 2006 10:59 am Subject: SmartyValidate 2.7 released |
It's very strange! In my new project I'm using SmartyValidate 2.7 and ASSIGN param in template doesn't work! I'm using this code:
In PHP:
SmartyValidate::register_validator('fst', 'fst', 'notEmpty ... |
Topic: SmartyValidate 2.7 released |
barma3
Replies: 49
Views: 291504
|
Forum: Add-ons Posted: Sun Apr 09, 2006 10:04 am Subject: SmartyValidate 2.7 released |
tpr, try this:
{validate id="vname" message="& Name cannot be empty<br />" assign="error_vname"}
...
{if isset($error_vname)}{$error_vname}{/if} |
Topic: Some undefined error from SmartyPaginate |
barma3
Replies: 1
Views: 7411
|
Forum: Plugins Posted: Sun May 29, 2005 1:31 pm Subject: Some undefined error from SmartyPaginate |
In your case $rs->RecordCount() returns number of records in your SQL query, where you are using limit param. So you have got 10 strings. Use separate query for SmartyPaginate::setTotal().
This ... |
Topic: Modifier add_url_param |
barma3
Replies: 11
Views: 71274
|
Forum: Plugins Posted: Thu May 12, 2005 6:33 pm Subject: Modifier add_url_param |
Is it possible to remove PHPSESSID param from URL?
What you think about this solution:
// if exist PHPSESSID cookie, remove PHPSESSID param
// from URL.
if (isset($_COOKIE['PH ... |
|
Page 1 of 1 |
All times are GMT |
Powered by phpBB © 2001, 2005 phpBB Group
|