Objects and Methods.

From: Date: Thu, 30 Oct 2003 14:34:35 +0000
Subject: Objects and Methods.
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10473@lists.php.net to get a copy of this message
I didn't see this in the Smarty Manual (objects or functions) but I swear I saw it somewhere on the web. My problem is that I cannot find it now.. I have a class I use to create HTML form elements (I wrote it before I knew about oohforms, if someone knows how to incorporate oohforms into Smarty templates, I would like to know). Actually, this would apply to any object->property I want to use. I thought I saw syntax similar to this: {object.property} Anyway, I'm having trouble understanding the way objects are handled in Smarty. Here is how I have it now... {php} $form->elementText(array('type' => 'textarea', 'cols' => '12', 'rows' => '12', 'value' => $val)); {/php} How I can change to be used with Smarty itself. Meaning, how I can make the object be referenced in the template and be able to use arrays as args?

« previous php.smarty.general (#10473) next »