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 46 matches
Smarty Forum Index
Author Message
  Topic: Inherited template and $smarty.template
geoB

Replies: 2
Views: 25449

PostForum: Add-ons   Posted: Thu Jul 26, 2012 8:50 pm   Subject: Inherited template and $smarty.template
Thanks for your reply. That's what I ended up doing, figuring the explanation was most likely what you provided. Guess I was just trying to be too clever.

George
  Topic: Inherited template and $smarty.template
geoB

Replies: 2
Views: 25449

PostForum: Add-ons   Posted: Sun Jul 22, 2012 11:37 pm   Subject: Inherited template and $smarty.template
It appears that $smarty.template inside a template returns the name of the outermost template rather than the name of the template containing that code.
For example, index.tpl contains:{extend ...
  Topic: Very slow save of .tpl in Eclipse/Helios
geoB

Replies: 9
Views: 12657

PostForum: General   Posted: Fri Jan 27, 2012 5:47 pm   Subject: Very slow save of .tpl in Eclipse/Helios
Unless you're locked in to Eclipse,[url=http://netbeans.org] Netbeans is worth a look. Smarty implementation is already built in to the PHP IDE.

g
  Topic: Very slow save of .tpl in Eclipse/Helios
geoB

Replies: 9
Views: 12657

PostForum: General   Posted: Wed Jan 25, 2012 7:35 pm   Subject: Very slow save of .tpl in Eclipse/Helios
Glad you got it to work for you. It's possible my system had acquired so much "moss" that things were slow. Since I was too frustrated with Helios I moved to Netbeans and found it more tha ...
  Topic: Validating at least one checkbox
geoB

Replies: 3
Views: 28092

PostForum: Add-ons   Posted: Fri Jan 13, 2012 3:58 am   Subject: Solved!
What started me on a new track was the discovery that if eth1 was not checked the validation function was never run. Seemed odd to me.

I discovered that it's easier to confirm whether a variable i ...
  Topic: Validating at least one checkbox
geoB

Replies: 3
Views: 28092

PostForum: Add-ons   Posted: Thu Jan 12, 2012 9:39 pm   Subject: Validating at least one checkbox
Thanks for your reply.

print_r($params) yields Array ( [field] => eth1 [field2] => eth2 [field3] => eth3 [field4] => eth4 [field5] => eth5 ...
  Topic: Validating at least one checkbox
geoB

Replies: 3
Views: 28092

PostForum: Add-ons   Posted: Thu Jan 12, 2012 6:58 pm   Subject: Validating at least one checkbox
Please forgive my thickness...and ignorance.

I am trying to validate a set of checkboxes for ethnicity. There are seven, and at least one must be checked. The ethnicities are eth1 - eth7, functio ...
  Topic: How to avoid validate form not registered error on Back?
geoB

Replies: 2
Views: 26407

PostForum: Add-ons   Posted: Thu Jan 12, 2012 2:50 pm   Subject: How to avoid validate form not registered error on Back?
Thanks. I'll see what I can do with this. I know I still don't fully grok how all the pieces fit together.

George
  Topic: How to avoid validate form not registered error on Back?
geoB

Replies: 2
Views: 26407

PostForum: Add-ons   Posted: Thu Jan 12, 2012 12:21 am   Subject: How to avoid validate form not registered error on Back?
I've built an application using validation on several forms. Once I figured out how to make all the pieces play nicely together I was quite pleased. I've stumbled into a situation, though, that has ...
  Topic: html_options & class oddity
geoB

Replies: 0
Views: 3538

PostForum: General   Posted: Thu Dec 29, 2011 4:38 pm   Subject: html_options & class oddity
I'm curious about the following behavior:

With the template code {html_options name="county" class="smallform" options="$counties"}
I get <option value=& ...
  Topic: Undocumented feature? class="something" in custom
geoB

Replies: 2
Views: 10264

PostForum: Tips and Tricks   Posted: Wed Dec 14, 2011 3:15 am   Subject: Undocumented feature? class="something" in custom
I guess I "discovered" the meaning of All parameters that are not in the list above are printed as name/value-pairs inside the <select> tag.

g
  Topic: Undocumented feature? class="something" in custom
geoB

Replies: 2
Views: 10264

PostForum: Tips and Tricks   Posted: Wed Dec 14, 2011 12:49 am   Subject: Undocumented feature? class="something" in custom
I may have stumbled on an undocumented feature of custom functions. I wanted to apply a style to functions like {html_options} and discovered to my amazement is that I just needed to add th ...
  Topic: Understanding Validate error array
geoB

Replies: 1
Views: 22825

PostForum: Add-ons   Posted: Fri Dec 02, 2011 4:54 pm   Subject: Figured it out
The code {foreach from=$error key="key" item="val"}
field: {$key} error: {$val}
{/foreach}needs to foll ...
  Topic: Understanding Validate error array
geoB

Replies: 1
Views: 22825

PostForum: Add-ons   Posted: Fri Dec 02, 2011 3:05 pm   Subject: Understanding Validate error array
I'm just getting started with SmartyValidate v3 so please forgive my density. The validations work as expected until I use append as in {validate id="first" message="First name m ...
  Topic: Very slow save of .tpl in Eclipse/Helios
geoB

Replies: 9
Views: 12657

PostForum: General   Posted: Sun Nov 27, 2011 7:38 pm   Subject: Very slow save of .tpl in Eclipse/Helios
It seems that my version of Eclipse is too new to support the plug-in (after all, it was last updated almost three years ago).

Curious. The last development I'd done with Eclipse & Smarty was ...
 
Page 1 of 4 Goto page 1, 2, 3, 4  Next
All times are GMT
Jump to:  


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