l4dd13 — 2012-06-02T06:20:48-04:00 — #1
I've tried everything I can to get the standard zend breadcrumb view helper to work, but I can't.
I've tried loads of tutorials, attempted to follow the Zend documentation, but I always end up with the same error.
Catchable fatal error: Argument 1 passed to Zend_View_Helper_Navigation_Menu::menu() must be an instance of Zend_Navigation_Container, string given in /home/michael/www/_libraries/Zend/View/Helper/Navigation/Menu.php on line 77
I've tried the following, but it doesn't work.
I'm using ZF 1.11.
Any help would be great.
oddz — 2012-06-03T12:49:17-04:00 — #2
Post the php?
The message states exactly what the problem is otherwise. Passing a string when an instance of Zend_Navigation_Container is expected for the method menu. Are you calling menu directly or is that function indirectly being called from framework routines. Guess we will see with the supplied PHP.
cups — 2012-06-04T05:13:12-04:00 — #3
Sounds to me as if either you have not got your includes set up correctly, or you do not have Zend Navigation installed.
$container = new Zend_Navigation();
var_dump( $container );
What msg does that give you? Consider how can you prove that Zend Navigation is available to this script at all?
system — 2014-10-07T22:29:44-04:00 — #4
This topic is now closed. New replies are no longer allowed.