Author |
Message |
Topic: string: resource not using calling Smarty instance? |
dustinb
Replies: 1
Views: 3469
|
Forum: General Posted: Fri Oct 03, 2014 12:34 am Subject: string: resource not using calling Smarty instance? |
Am wondering why this doesn't work. Is there a way I can copy the string resource and make a custom one where this would work? getTemplateVars does not see the test var.
$smarty = new Smarty( ... |
Topic: Read Template from Variable as Resource |
dustinb
Replies: 19
Views: 41439
|
Forum: General Posted: Tue May 08, 2012 5:45 pm Subject: Text Resource |
I've used the above to create a text: resource for variables. I keep getting warning about long file names and an include function which is not present in the text variable. Doesn't matter if I turn ... |
Topic: 3.3.1 setPluginsDir removes system plugins |
dustinb
Replies: 1
Views: 4625
|
Forum: Bugs Posted: Sat Sep 24, 2011 4:31 pm Subject: 3.3.1 setPluginsDir removes system plugins |
When I use
$smarty->setPluginsDir($pluginDirs);
If I don't include the default libs/plugins directory in the array the system modifiers like |replace |capitalize are gone.
Not sure if that ... |
Topic: Smarty 3 beta 6 released |
dustinb
Replies: 9
Views: 34050
|
Forum: Smarty 3 Posted: Thu Jan 14, 2010 6:47 pm Subject: $smarty.cookies |
Seems in beta 6 $smarty.cookies broke. I went back to beta 4 where it was working because that's the last version I was last using.
Not really any detail to give $smarty.cookies.something doesn't ... |
Topic: BC issue with if tag |
dustinb
Replies: 1
Views: 6953
|
Forum: Smarty 3 Posted: Mon Nov 02, 2009 7:09 pm Subject: BC issue with if tag |
Downloaded 3.0b1 and noticed the following tag produces and error
{if $errorMsg neq ''}
Changing to the following works as it should
{if $errorMsg != ''}
I'm so looking forward to the new ... |
Topic: Smarty Delimiters in Attributes |
dustinb
Replies: 1
Views: 5367
|
Forum: Smarty Development Posted: Sat Feb 21, 2009 6:55 pm Subject: Smarty Delimiters in Attributes |
Will this ever be supported?
{function var="{1,2,3}"}
Haven't seen anything on this in manual or discussions. Realize it's a difficult parsing issue, but still curious.
Thanks,
Dus ... |
Topic: Frustrated with printing out array. Please help! |
dustinb
Replies: 2
Views: 5352
|
Forum: General Posted: Sat Feb 21, 2009 6:27 pm Subject: Frustrated with printing out array. Please help! |
Suggest you use foreach instead of section, makes things easier to read and nicer to get the array key.
{foreach from=$salesstaff key=groupname item=group}
<p><b>{$g ... |
Topic: Help me for a modifier to communcate to javascript variable. |
dustinb
Replies: 2
Views: 4772
|
Forum: General Posted: Sat Feb 21, 2009 6:13 pm Subject: Help me for a modifier to communcate to javascript variable. |
Have you tried the escape modifier?
<a href="#" onClick="return(my_js_function('{$var|escape:javascript}');">Show Values</a>
|
Topic: display content from database instead of tpl file |
dustinb
Replies: 4
Views: 7235
|
Forum: General Posted: Sat Feb 21, 2009 6:09 pm Subject: display content from database instead of tpl file |
When you wrote your resource plugin you should have had a function like
function smarty_resource_MYRESOURCE_timestamp ($rsrc_name, &$timestamp, &$smarty) {
$timestamp = ti ... |
Topic: assigning smarty to connect to DB when option is selected. |
dustinb
Replies: 2
Views: 8155
|
Forum: Smarty Development Posted: Sat Feb 21, 2009 5:55 pm Subject: assigning smarty to connect to DB when option is selected. |
Magesh,
This is not a Smarty question so doesn't belong here. You'll want to use some type of ajax framework like Dojo see: List_of_Ajax_frameworks in wikipedia for others.
Here's a example usi ... |
Topic: Function Parameter Parsing |
dustinb
Replies: 2
Views: 7205
|
Forum: Smarty Development Posted: Fri Feb 20, 2009 9:29 pm Subject: Function Parameter Parsing |
It is now, on my server anyway. Yeah there maybe some unintended consequences but can't think of any right now. Essentially I changed state 2 of the loop to treat token with no = sign as $attrs[$att ... |
Topic: Function Parameter Parsing |
dustinb
Replies: 2
Views: 7205
|
Forum: Smarty Development Posted: Fri Feb 20, 2009 8:43 pm Subject: Function Parameter Parsing |
Hello,
Wondering if someone could point me in the right direction to make a modification. If I have a custom function and do something silly like
{custom flag1 flag2 var="something"}
... |
|