Menu Collecting

Permalink
I want to collect the menu printout into a variable in other words:

$menu_items = $a->display($c);

But of course when I do inside my template it prints out an object error. So how would I get the menu links printout into a variable?

Thanks in advance.

 
Remo replied on at Permalink Reply
Remo
I guess if you don't want to rewrite/override some core methods you can only try to use output buffering.. ob_start etc.
jfreak53 replied on at Permalink Reply
Thanks for the help. One question I've tried using output buffering according to the php.net manual on the subject, but even when I use it, it will still print it out. And the variable won't capture it using the ob get feature. So what am I missing here?

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.