Zend Framework 1.8 tutorial 8 zend_navigation and zend_acl

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
11,398
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 17, 2009

Combine zend_navigation with zend_acl to generate menu based on current user role.
---------------
Resources:
http://zendframework.com/manual/en/zend.navigation.html
http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers....

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Top Comments

  • Hello - metK1337

    I got same isse as you, i did this trick:

    $role = is_object($this->_auth->getSto­rage()->read()) ? $this->_auth->getStorage()->re­ad()->role : null;

    $view->navigation($navContaine­r)->setAcl($this->_acl)->setRo­le($role);

    and the same in AccessCheck - i guess it is because our platforms are set to show all php notices! :=) happy coding - and thanks to integral30 - nice tutorials

  • great job

see all

All Comments (10)

Sign In or Sign Up now to post a comment!
  • Hi, is it possible to view the source code for this tutorial via svn, git or downloadable as a zip?

  • thank you so much.

  • thanks how easy zf has became through your video tutorials ,plz keep posting videos like these.

  • One more thing, it would be great if you create the tutorial about adding, editing and deleting news from the beggining to the end (with connection to the mysql).

  • Very nice tutorials, good job and thank you, you can't image how grateful I am.

    But still after completing this tutorials, I have 2 error messages and don't know why (I mean, I do know what this error messages means, but don't know how to fix them):

    Notice: Trying to get property of non-object in ..\application\Bootstrap.php on line 41

    Notice: Trying to get property of non-object in ..\application\plugins\AccessC­heck.php on line 20

    I am looking forward for some more tuts and thanks again!

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more