Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Search found 4 matches
Smarty Forum Index
Author Message
  Topic: shorttag_order for custom plugins
Karamfil

Replies: 1
Views: 4684

PostForum: Smarty Development   Posted: Wed Nov 18, 2015 8:14 am   Subject: shorttag_order for custom plugins
Hello,

Is there a way with Smarty 3 to create shorthand attributes for custom functions.

Here is an example:
{T 'Text'}

Thanks
  Topic: PHP5 dereferencing support
Karamfil

Replies: 8
Views: 16061

PostForum: Feature Requests   Posted: Fri Mar 28, 2008 3:59 pm   Subject: PHP5 dereferencing support
Here is what i came with

Extend the Smarty class with yours, thus there is no chance somebody will overwrite edited smarty files, becuase you haven't edited them Wink

/*
* Template.class.php
* ...
  Topic: Including a template in the same template
Karamfil

Replies: 2
Views: 3173

PostForum: General   Posted: Tue Feb 27, 2007 2:38 pm   Subject: Including a template in the same template
Hello Smile

Hmm {foreach} is harder for me Wink i tried it

here is the code
{foreach item=menuItem from=$menu}
<li><a href="{$menuItem.link}">{$menu ...
  Topic: Including a template in the same template
Karamfil

Replies: 2
Views: 3173

PostForum: General   Posted: Sun Feb 25, 2007 5:39 pm   Subject: Including a template in the same template
Hello,


I have a section and I need to include the same template as current. here is the code:

the PHP
$submenuItem1 = array("link" => "###1", "title" => ...
 
Page 1 of 1
All times are GMT
Jump to:  


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