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 8 matches
Smarty Forum Index
Author Message
  Topic: block appending and prepending in 3.1rc1
thm

Replies: 1
Views: 5613

PostForum: Smarty 3   Posted: Tue Jul 19, 2011 5:41 pm   Subject: block appending and prepending in 3.1rc1
Hi,

I used to have code like this:

{block name='foo' prepend=true}
...
{/block}

with the foo block being defined elsewhere and inherited via {extends..}. This works in 3.08. In 3.1rc1 howev ...
  Topic: template functions: undefined index notices
thm

Replies: 1
Views: 5603

PostForum: Smarty 3   Posted: Fri Apr 30, 2010 5:25 pm   Subject: template functions: undefined index notices
Here's a minor problem with template functions: When you define one using this syntax: {function name="foo"}
...
{/function} (with double quotes around its name), you g ...
  Topic: template function names starting with "block..."
thm

Replies: 1
Views: 5505

PostForum: Smarty 3   Posted: Fri Apr 30, 2010 5:15 pm   Subject: template function names starting with "block..."
Hi again,

If a template function's name starts with "block..." (like "blockrows"), it cannot be called. If you try to call it via {blockrows foo="bar"} you g ...
  Topic: use template functions from included templates
thm

Replies: 13
Views: 22361

PostForum: Smarty 3   Posted: Fri Apr 30, 2010 4:47 pm   Subject: use template functions from included templates
Hi,

Say table.tpl defines a function:
{function name="table"}
...
{/function}
Now, I want to use that function in another template foo.tpl:
{include file=&q ...
  Topic: smarty3 and xml declaration
thm

Replies: 1
Views: 5257

PostForum: Smarty 3   Posted: Tue Feb 16, 2010 4:50 pm   Subject: smarty3 and xml declaration
Hi!

Using Smarty3 r3498, xml declarations are mangled. In the tpl, I have
<?xml version="1.0"?>
The generated xhtml then has this as first line:
<?xml version="1.0"? ...
  Topic: using {function} via {include}
thm

Replies: 5
Views: 11222

PostForum: Smarty 3   Posted: Mon Nov 09, 2009 10:02 pm   Subject: using {function} via {include}
could you retry please.

Revision 3324 works, thx!
  Topic: using {function} via {include}
thm

Replies: 5
Views: 11222

PostForum: Smarty 3   Posted: Mon Nov 09, 2009 9:37 pm   Subject: using {function} via {include}
The fix is in the SVN now

Revision 3322 works, but 3323 shows the problem again.

As expected, setting force_compile = true also helps.
  Topic: using {function} via {include}
thm

Replies: 5
Views: 11222

PostForum: Smarty 3   Posted: Mon Nov 09, 2009 6:09 pm   Subject: using {function} via {include}
Using this setup:

templates/table.tpl:
{function name=mytable}
<table>{foreach $data as $row}
<tr>{foreach $row as $column}
<td>{ ...
 
Page 1 of 1
All times are GMT
Jump to:  


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