Smarty together with PEAR Html_Menu and NestedSet class.
| From: | Pete | Date: | Mon, 24 May 2004 12:28:59 +0000 |
| Subject: | Smarty together with PEAR Html_Menu and NestedSet class. | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-11397@lists.php.net to get a copy of this message | ||
Hi,
i am using the PEAR Html_Menu class.
This class creates a table with the following function call:
$menu->show()
When I try do an assign:
$page->assign('menu', $menu->show());
It doesn't pass the var menu but prints the menu right away at the top of the screen.
Is it possible to pass an object to Smarty and call its function from there so I get the menu at the
right place on the html page ?
Thx