Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Calling assigned object methods

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
Ceph
Smarty Rookie


Joined: 25 Nov 2003
Posts: 24

PostPosted: Fri Jun 18, 2004 6:17 pm    Post subject: Calling assigned object methods Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP