Member Functions support in sections?
| From: | Alexander, Jason | Date: | Tue, 06 Mar 2001 23:18:28 +0000 |
| Subject: | Member Functions support in sections? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-329@lists.php.net to get a copy of this message | ||
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