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 12 matches
Smarty Forum Index
Author Message
  Topic: too many shorthand attributes for {if}{/if} blocks?
ksnyde

Replies: 3
Views: 36212

PostForum: Feature Requests   Posted: Thu Jan 03, 2013 5:51 pm   Subject: too many shorthand attributes for {if}{/if} blocks?
Thanks @U.Tews.
  Topic: too many shorthand attributes for {if}{/if} blocks?
ksnyde

Replies: 3
Views: 36212

PostForum: Feature Requests   Posted: Thu Jan 03, 2013 3:13 pm   Subject: too many shorthand attributes for {if}{/if} blocks?
Ok, I'm an idiot. It had to do with the last two blocks having a "no" instead of "not" operator. Jeez. Still interested in what this error means so I can become more knowledgable b ...
  Topic: too many shorthand attributes for {if}{/if} blocks?
ksnyde

Replies: 3
Views: 36212

PostForum: Feature Requests   Posted: Thu Jan 03, 2013 3:06 pm   Subject: too many shorthand attributes for {if}{/if} blocks?
I have a simple Smarty template that checks for the existence of a number variables that it assumes may have been passed in by the calling template but if not set then defaults them to something appro ...
  Topic: Static method calls
ksnyde

Replies: 9
Views: 59810

PostForum: Feature Requests   Posted: Thu Dec 13, 2012 2:54 pm   Subject: Static method calls
Has this been addressed in later versions of Smarty? It does seem like a pretty obvious addition.
  Topic: Functions with array inputs and outputs
ksnyde

Replies: 3
Views: 5729

PostForum: General   Posted: Mon Oct 29, 2012 3:03 pm   Subject: Functions with array inputs and outputs
I did try this but the return value I'm passing back is an array and for some reason the template was getting the string "Array" rather than the actual array. In the end I decided to have th ...
  Topic: Problem using default modifiers
ksnyde

Replies: 2
Views: 5596

PostForum: General   Posted: Mon Oct 29, 2012 2:17 pm   Subject: Problem using default modifiers
Smile Great. Thank you. I hadn't considered that but it works perfectly now.
  Topic: plugins directory conflict
ksnyde

Replies: 1
Views: 3785

PostForum: General   Posted: Sun Oct 28, 2012 9:50 pm   Subject: plugins directory conflict
I have been struggling since I started developing my own modifier functions to get my Smarty environment working the way it should. Specifically I seem to have to choose between being able to use the ...
  Topic: Functions with array inputs and outputs
ksnyde

Replies: 3
Views: 5729

PostForum: General   Posted: Sun Oct 28, 2012 12:27 pm   Subject: Functions with array inputs and outputs
I was hoping to have a smarty function take an associative array as an input and output another associative array. In essence the function will act as a filter so that the output array will always be ...
  Topic: Problem using default modifiers
ksnyde

Replies: 2
Views: 5596

PostForum: General   Posted: Thu Oct 25, 2012 10:45 am   Subject: Problem using default modifiers
I am trying to step a bit beyond the basic usage of Smarty and ran into a small problem using the default "capitalize" modifier. I am operating with the assumption that no explicit calls nee ...
  Topic: Function plugin not callable
ksnyde

Replies: 4
Views: 14323

PostForum: Plugins   Posted: Fri Oct 19, 2012 11:25 pm   Subject: Function plugin not callable
Ok. Typo removed. I'm now using setPluginsDir() and I've moved to my next failure point ... but it appears I'm making progress. Let me wrestle with this one for a bit. Thanks for the help.
  Topic: Function plugin not callable
ksnyde

Replies: 4
Views: 14323

PostForum: Plugins   Posted: Fri Oct 19, 2012 4:30 pm   Subject: Addendum
I started thinking maybe my problem was that I hadn't called the setPluginDir() method so I did this:
$object->setPluginDir ( LG_FE_DIR . '/templates/functions' );

This resulted in a ne ...
  Topic: Function plugin not callable
ksnyde

Replies: 4
Views: 14323

PostForum: Plugins   Posted: Fri Oct 19, 2012 4:09 pm   Subject: Function plugin not callable
All I want in my current Smarty life is a function plugin that works. I've banged my head a few times and hoping that this forum can help.

I've failed twice: once with an automatic call and now wit ...
 
Page 1 of 1
All times are GMT
Jump to:  


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