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

Search found 2 matches
Smarty Forum Index
Author Message
  Topic: Why "math" doesn't work?
4Axis

Replies: 2
Views: 3053

PostForum: General   Posted: Tue Sep 01, 2015 8:23 am   Subject: Why "math" doesn't work?
Hi.
I would like to multiply the variables in the TPL.
But, unfortunately, does not work and do not know why.

{assign var="name" value=$product['name']|substr:-15} ...
  Topic: "math" w tpl nie dziala
4Axis

Replies: 1
Views: 7320

PostForum: Language: Polish   Posted: Tue Sep 01, 2015 8:04 am   Subject: "math" w tpl nie dziala
Witam.
Chciałbym wykonać mnożenie w zmiennych w tpl.
Ale niestety nie działa i nie wiem dlaczego. Kod:

{assign var="name" value=$product['name']|substr& ...
 
Page 1 of 1
All times are GMT
Jump to:  


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