For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > May 2004 > Smarty together with PEAR Html_Menu and NestedSet class.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Smarty together with PEAR Html_Menu and NestedSet class.
Pete

2004-05-24, 11:45 am

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com