|
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 |
chrisg101 Smarty Rookie
Joined: 25 Feb 2004 Posts: 7
|
Posted: Mon Apr 18, 2005 1:34 am Post subject: Passing multiple params to object function |
|
|
Hi,
Sorry, this is probably a basic one, but I can't seemt o find the solution. I need to pass a couple of arguments to a function within an object. I have assigned_by_ref the object.
So just so I am trying to pass an integer and a string to an object function in PHP like so '$oObject->myFunc(3, "the string");
In php I would assume you would do it like so:
{* .tpl file *}
{$oObject->myFunc(3, "the string")}
but it doesn't seem to accept this. Is there another was to pass multiple arguments?
Thanks for your help.
Chris. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Mon Apr 18, 2005 4:16 pm Post subject: |
|
|
That should work fine, what errors are you getting? |
|
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
|