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 39 matches
Smarty Forum Index
Author Message
  Topic: template included more than once in parent template and vars
scdgro

Replies: 1
Views: 3688

PostForum: General   Posted: Thu Dec 13, 2012 6:37 pm   Subject: template included more than once in parent template and vars
I have this case :

template "a":

<div class="tab-content">
{foreach $_tabcontent as $t}
<div class="tab-pane" id="{$ ...
  Topic: append(x,y,true) Seems to Replace
scdgro

Replies: 15
Views: 16163

PostForum: General   Posted: Tue Dec 04, 2012 12:15 pm   Subject: append(x,y,true) Seems to Replace
My solution is, and i think it's beter than handling all array's in depth, is that i have copied a script which flattens an array and then store it in a class variable.
After all the assigning and ap ...
  Topic: append(x,y,true) Seems to Replace
scdgro

Replies: 15
Views: 16163

PostForum: General   Posted: Sat Dec 01, 2012 3:58 pm   Subject: append(x,y,true) Seems to Replace
I don't entirely understand your answer mohrt.. I agree with the topic starter with having an array with a key which has siblings. I ran into the same "problem". this was first caused by ...
  Topic: Smarty Extension (ServiceProvider) for Silex framework
scdgro

Replies: 3
Views: 25166

PostForum: Frameworks   Posted: Tue Nov 06, 2012 6:40 pm   Subject: Smarty Extension (ServiceProvider) for Silex framework
Look like this one is outdated...

Class FractalizeR\Smarty\ServiceProvider contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Silex\ServiceP ...
  Topic: Catchable fatal error: Object of class stdClass could not be
scdgro

Replies: 1
Views: 8681

PostForum: Smarty Development   Posted: Sat Mar 19, 2011 12:34 pm   Subject: Catchable fatal error: Object of class stdClass could not be
Don't know if this is what you mean :

Smarty 2 syntax :

{foreach from=$name item=names}
{$names->foo}
{$names->bar}
{/foreach}


Smarty ...
  Topic: foreach outputs with boolean false, intented or not
scdgro

Replies: 1
Views: 7136

PostForum: Smarty Development   Posted: Sat Mar 19, 2011 9:08 am   Subject: foreach outputs with boolean false, intented or not
Using latest svn release @ smarty 3 :

I wonder why the foreach loop outputs data when the data passed
to it is boolean false.
When the data is null, then the foreach outputs nothing.

The loop ...
  Topic: svn 3792 : getConfigVars always returns empty array
scdgro

Replies: 4
Views: 6873

PostForum: Bugs   Posted: Tue Nov 16, 2010 8:58 am   Subject: svn 3792 : getConfigVars always returns empty array
Vielen Dank Uwe
  Topic: svn 3792 : getConfigVars always returns empty array
scdgro

Replies: 4
Views: 6873

PostForum: Bugs   Posted: Mon Nov 15, 2010 11:02 am   Subject: svn 3792 : getConfigVars always returns empty array
It's not a scope problem as i see now.

when Smarty_Internal_Template::__construct is called,
a dump from $smarty tells me, that the config_vars array isn't filled yet.

In the version i had, it ...
  Topic: svn 3792 : getConfigVars always returns empty array
scdgro

Replies: 4
Views: 6873

PostForum: Bugs   Posted: Mon Nov 15, 2010 7:58 am   Subject: svn 3792 : getConfigVars always returns empty array
My last svn checkout was before the initial stable 3.0 release..
Maybe my problem got there with Version 3.0.2.

to show the hierarchy :
clsParser extends clsSmarty and clsSmarty extends Smarty ...
  Topic: Parsing tags in vars (in addition to other posting)
scdgro

Replies: 3
Views: 5884

PostForum: General   Posted: Sat Oct 23, 2010 5:33 pm   Subject: Parsing tags in vars (in addition to other posting)
Thank you uwe, that was exactly was i was looking for.
  Topic: Parsing tags in vars (in addition to other posting)
scdgro

Replies: 3
Views: 5884

PostForum: General   Posted: Fri Oct 22, 2010 4:28 pm   Subject: Parsing tags in vars (in addition to other posting)
This posting ( http://www.smarty.net/forums/viewtopic.php?t=18134 ) does answers some questions for me in this,
but it doesn't give full programming freedom, so to speak.

Example

$smarty=new ...
  Topic: modifier now adds quotes itself from svn3642 on ?
scdgro

Replies: 16
Views: 18899

PostForum: Smarty 3   Posted: Thu Jul 29, 2010 1:25 pm   Subject: modifier now adds quotes itself from svn3642 on ?
I knew it that there was something Smile

Thanx for the support guys.
  Topic: modifier now adds quotes itself from svn3642 on ?
scdgro

Replies: 16
Views: 18899

PostForum: Smarty 3   Posted: Tue Jul 27, 2010 9:18 am   Subject: modifier now adds quotes itself from svn3642 on ?
Ah.. that's a nice example you put there.
That is also a way to solve my problem. Then you understand my thinking Very Happy

To put the tags in the config was just a way to be able to use them in my templ ...
  Topic: modifier now adds quotes itself from svn3642 on ?
scdgro

Replies: 16
Views: 18899

PostForum: Smarty 3   Posted: Mon Jul 26, 2010 9:22 pm   Subject: modifier now adds quotes itself from svn3642 on ?
Thank you for your input mohrt,
I am aware of the functionality you are showing to me, but let me try to explain what i really mean.


<table class="border uline" cellpadding="0& ...
  Topic: modifier now adds quotes itself from svn3642 on ?
scdgro

Replies: 16
Views: 18899

PostForum: Smarty 3   Posted: Mon Jul 26, 2010 6:03 am   Subject: modifier now adds quotes itself from svn3642 on ?
I have lots of templates which share a bunch of html codes.

Smarty is meant to make life easy on this part.. isn't it ?

so in stead of writing a piece of html code again and again and again, an ...
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT
Jump to:  


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