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.
$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.
I guess if you don't want to rewrite/override some core methods you can only try to use output buffering.. ob_start etc.
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?