RE: Member Functions support in sections?

From: Date: Tue, 06 Mar 2001 23:53:22 +0000
Subject: RE: Member Functions support in sections?
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-330@lists.php.net to get a copy of this message
Hrm, well I found that if I just populate it to a property array all is well. Oh well, I can implement base classes some other time, I suppose. -Jason -----Original Message----- From: Alexander, Jason [mailto:jalexander@aivia.net] Sent: Tuesday, March 06, 2001 5:18 PM To: 'smarty@lists.ispi.net' Subject: [smarty] Member Functions support in sections? Hey all, Having gotten past my last if challenge (lord only knows what was wrong... the next morning, shift+refresh and all was well), I'm attempting to pass in an array of objects to a section, and I'm having difficulty calling the member functions of the objects, once they're there. I basically have a class called article, with a member function of get_article_title(). I have an array of articles, and I'm assigning it to the template: $template->assign("articles", $aoArticles); And, in my template I have the following: {section name=articleloop loop=$articles} title: {$articleloop/get_article_title} {/section} Any ideas? TIA, -Jason --- You are currently subscribed to smarty as: jalexander@aivia.net To unsubscribe send a blank email to $subst('Email.Unsub') Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/

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