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 3 matches
Smarty Forum Index
Author Message
  Topic: Plugin "columnSeparator" - split rows to columns
MVH

Replies: 0
Views: 7716

PostForum: Plugins   Posted: Mon Mar 14, 2011 9:31 am   Subject: Plugin "columnSeparator" - split rows to columns
<?php
/**
* Split rows to columns.
* @version 1.0
* @author Mikhail Kharitonov <mvh@list.ru>
*
* Example 1:
* <table>
* {$foo=0}
* {foreach a ...
  Topic: Variable scope in {php} tag
MVH

Replies: 7
Views: 19112

PostForum: Smarty 3   Posted: Sat Mar 05, 2011 10:22 am   Subject: Variable scope in {php} tag
maybe i can access template object form $smarty object?
Hm... You can access to current template through $template var:

{php}
$template->assign('foo', 'value');
$tpl ...
  Topic: Option use_relative_paths in {include} and {extends}
MVH

Replies: 9
Views: 41020

PostForum: Feature Requests   Posted: Fri Mar 04, 2011 8:02 pm   Subject: Option use_relative_paths in {include} and {extends}
In big projects, where many template files, full path to template input so hard.
Example:
Project structure:
layouts/
base.tpl
modules/
catalog/
goods/
inc/
...
 
Page 1 of 1
All times are GMT
Jump to:  


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