Zend Framework 1.8 tutorial 5 zend_acl with zend_auth and controller plugin part 2

Loading...

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

Uploaded by on Jun 27, 2009

Learn to use Zend_Acl to create application resources and allocate permissions. Then use instance of Zend_Auth to get the user's role and check it against the resource permissions. Finally, learn the basics of MVC plugins as we make sure that the security checks are run just before the controller is called in a preDispatch method.

Part 3: http://www.youtube.com/watch?v=VsdDvfMznH0

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Top Comments

  • I like your videos. I am an experienced php programmer but just never have the time to read zend manuals. Now I am able to learn about zend extremely fast just by watching.

  • FYI...with the latest ZF, because Plugin_AccessCheck extends Zend_Controller_Plugin_Abstrac­t, which is an abstract class, a Zend_Controller_Request_Abstra­ct parameter is required in the ->preDispatch() parameter list - you can not run with parameter list empty.

see all

All Comments (8)

Sign In or Sign Up now to post a comment!
  • Hi,

    Where can I found the complete project ? (zip file or other)

    B.Regards

  • @07105006

    I had to put

    $fc = Zend_Controller_Front::getInst­ance();

    require_once 'Plugin/AccessCheck.php';

    $fc->registerPlugin(new Plugin_AccessCheck());

    nothing else works for me. If anyone has better idea please help

  • I have Zend Framework Version: 1.11.3. It's not throwing any errors with an empty parameter list. I'm only up to the point where he echoes "pre dispatched action".

  • I am using latest ZF, I am having:

    Fatal error: Class 'Plugin_AccsessCheck' not found in D:\xampp\htdocs\DLVC\applicati­on\Bootstrap.php on line 10

    i wrote the exact code as is ur videos but the system cant find the class dont know why, please help me plzzzzz.

  • can you provide the sourcefiles please?

  • Be careful because return $modeler in boostrap.php is not right, it has to be placed before the new code!

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