|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Ceph Smarty Rookie
Joined: 25 Nov 2003 Posts: 24
|
Posted: Fri Jun 18, 2004 6:17 pm Post subject: Calling assigned object methods |
|
|
I have in the PHP-side:
[php:1:7c032d34b1]<?php
$Smarty->assign_by_ref('order', $order);
?>[/php:1:7c032d34b1]
And in the template, I try to do:
Code: | <td>{$order->GetTotal(false,true)}</td> |
but that generates a Smarty error of "unrecognized tag"
However, this works (via Smarty, my class doesn't like it without modification:
Code: | <td>{$order->GetTotal("false",true)}</td> |
It appears Smarty needs quotes on the first parameter. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|