Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 14 matches
Smarty Forum Index
Author Message
  Topic: SmartyValidate _failed_fields $revalidate not used
BbErSeRkK

Replies: 0
Views: 8545

PostForum: Add-ons   Posted: Mon Mar 01, 2010 3:58 am   Subject: SmartyValidate _failed_fields $revalidate not used
SmartyValidate _failed_fields $revalidate not used
on the _failed_fields function in smarty validate, there is a parameter $revalidate which defaults to false.
It does not appear to be called any ...
  Topic: AJAX and SmartyValidate
BbErSeRkK

Replies: 7
Views: 33086

PostForum: Add-ons   Posted: Mon Mar 01, 2010 3:26 am   Subject: AJAX and SmartyValidate
yes if i understand what you are asking, it is possible.

you can use an ajax call to prime smarty validate, then a second call to submit the data.
if your validation fails on the second ajax call ...
  Topic: validator registered, but no message shows upon error
BbErSeRkK

Replies: 1
Views: 10921

PostForum: Add-ons   Posted: Thu Oct 08, 2009 4:56 am   Subject: validator registered, but no message shows upon error
did you mistakenly put
SmartyValidate::connect($smarty,true)
when you are trying to display the page with the error?
that will wipe the error messages.
  Topic: Smarty Validate - multi page form with error not displaying
BbErSeRkK

Replies: 2
Views: 12553

PostForum: Add-ons   Posted: Thu Oct 08, 2009 4:54 am   Subject: Smarty Validate - multi page form with error not displaying
wild guess, as i just use different form names for pages.

but did you set:
SmartyValidate::set_page('1');
when you redisplay the page with the error?
  Topic: add a prefix to a variable name (variable variable)
BbErSeRkK

Replies: 4
Views: 9610

PostForum: General   Posted: Fri Sep 25, 2009 1:23 am   Subject: add a prefix to a variable name (variable variable)
ok for future reference i needed to do this to have it work properly, not sure if there is a better way?

{assign var=prefixed_table_rows value="`$tbl_prefix`table_rows"|varvar} ...
  Topic: add a prefix to a variable name (variable variable)
BbErSeRkK

Replies: 4
Views: 9610

PostForum: General   Posted: Thu Sep 24, 2009 4:14 am   Subject: add a prefix to a variable name (variable variable)
Thanks for your help Monty, i gave a bad example of what i wanted in my previous post
but using your example with a varvar modifier works great.
$smarty->assign('testtable_rows', 'zzz'); ...
  Topic: add a prefix to a variable name (variable variable)
BbErSeRkK

Replies: 4
Views: 9610

PostForum: General   Posted: Wed Sep 23, 2009 7:14 am   Subject: add a prefix to a variable name (variable variable)
I have a template that generates a dynamic table for db data


<table class="tablesorter {$tableclass}" cellspacing="0" cellpadding="0" summary=" ...
  Topic: smarty if file exists?
BbErSeRkK

Replies: 15
Views: 44381

PostForum: General   Posted: Wed Jun 03, 2009 5:41 am   Subject: smarty if file exists?
I'm a bit slow,
tried to follow monty's example but had to do it this way:


php file:
$smarty->assign('template_dir',$smarty->template_base_dir);

tpl file:
{assign ...
  Topic: concat $smarty.const with a string in default modifier
BbErSeRkK

Replies: 2
Views: 7369

PostForum: General   Posted: Tue Mar 24, 2009 12:55 am   Subject: concat $smarty.const with a string in default modifier
that worked great, thanks! (sorry for belated thank-you Wink
  Topic: concat $smarty.const with a string in default modifier
BbErSeRkK

Replies: 2
Views: 7369

PostForum: General   Posted: Fri Mar 13, 2009 1:17 am   Subject: concat $smarty.const with a string in default modifier
{$indexTitle|default:$smarty.const.APPTITLE." -Application"}
doesn't work
it looks for a const called: .APPTITLE." -Application"
i want to concat the string to the const in the ...
  Topic: 2 dimensional / multi-dimensional form arrays
BbErSeRkK

Replies: 0
Views: 9310

PostForum: Add-ons   Posted: Thu Apr 17, 2008 12:19 am   Subject: 2 dimensional / multi-dimensional form arrays
I asked this in another thread, but I thought I would start a new thread.

Is there a way to easily do this with smarty validate?
I'm doing my head in trying to work out how the internals work, wal ...
  Topic: SmartyValidate on form with dynamic rows
BbErSeRkK

Replies: 1
Views: 11600

PostForum: Add-ons   Posted: Wed Apr 16, 2008 11:41 pm   Subject: multi dimensional arrays
Also has anyone had any success with multi-dimensional arrays?
  Topic: SmartyValidate on form with dynamic rows
BbErSeRkK

Replies: 1
Views: 11600

PostForum: Add-ons   Posted: Wed Apr 16, 2008 5:18 am   Subject: SmartyValidate on form with dynamic rows
Hi I'm using Smarty Validate to validate a form/table that has multiple rows,

The user can also add more rows to the table dynamically using jquery/javascript
(it clones the previous row, increme ...
  Topic: html radios custom function documentation needs extending
BbErSeRkK

Replies: 0
Views: 13150

PostForum: Documentation   Posted: Fri Jan 04, 2008 1:08 am   Subject: html radios custom function documentation needs extending
http://www.smarty.net/manual/en/language.function.html.radios.php

Does not document the label_ids atribute
for the radio labels to have "for" attributes (i.e. to bind it to the radio but ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP