SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist
    Join Date
    Jun 2008
    Posts
    455
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Zend Framework | Navigation Breadcrumbs causes exception

    Hi guys,

    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.
    http://blog.ekini.net/2009/05/25/zen...b-helper-work/

    I'm using ZF 1.11.
    Any help would be great.

    Cheers,
    Michael

  2. #2
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,184
    Mentioned
    17 Post(s)
    Tagged
    4 Thread(s)
    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.
    The only code I hate more than my own is everyone else's.

  3. #3
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Sounds to me as if either you have not got your includes set up correctly, or you do not have Zend Navigation installed.

    PHP Code:
    <?php
    $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?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •