News Feed
Sections

News Archive
feed this:

Zend Developer Zone:
Zend_Acl and MVC Integration Part II (Advanced Use)
July 16, 2008 @ 14:51:56

The Zend Developer Zone has posted part two of Aldemar Bernal's in-depth look at using the Zend_Acl component of the Zend Framework to manage the access control for your application.

In part one we saw how to setup our Zend_Acl instance and how to attach it to the MVC environment (by using the Front Controller Plugin), but what about setting another action for the denied access, or how does an article be edited only by its owner?, this, and some more is what we are going to see in the following examples.

This second part is broken up into a few parts:

  • Using Modules
  • Using Roles
  • Setting the denied error action
  • Using the action helper

These two tutorials are based on this proposal for the integration of Zend_Acl into the current framework is currently pending.

0 comments voice your opinion now!
tutorial zendframework zendacl mvc integration acl



Zend Developer Zone:
Zend_Acl and MVC Integration Part I (Basic Use)
June 23, 2008 @ 15:23:49

The Zend Developer Zone has posted a new tutorial (from Aldemar Bernal) about some of the basic use of the Zend_Acl component of the Zend Framework.

So, what is wrong with Zend_Acl and the current MVC implementation in the Zend Framework? there is nothing wrong, it is just that it gets not too obvious for developers how to achieve an optimal integration between these two important parts of the framework.

He talks about the proposal that's out for a potential update to the component, the two key points being the front controller plugin and a new action helper. He includes some sample code showing how to set it all up including a "denied" controller to handle the failures.

0 comments voice your opinion now!
zendacl zendframework component mvc integrate proposal


Padraic Brady's Blog:
Zend Framework Blog Tutorial - Part 7 Authorisation with Zend_Acl & Styling
May 12, 2008 @ 11:15:49

Padraic Brady is up to part seven of his blog creation (with the Zend Framework) series, tracking his development paths and though processes along the way. This new part of the seres looks at using Zend_Acl for user management and changing up some of the style of the site.

We previously covered how to authenticate an author to the blog, but we still have nothing ensuring only authenticated authors can access the new Administration Module. This is the domain of Zend_Acl, an implementation of an Access Control List system which limits access to resources by the roles assigned to a user.

He starts by helping you understand access control lists including roles and privileges. He plans out the different roles that he wants the application to have first (always a good first step) and then implements them in a class extending the Zend_Acl component. He wraps this all in a front controller to make it easy to use.

He also tosses in a bit there at the end about CSS and styling to handle the forms for login and the administration piece of the blog he created earlier.

0 comments voice your opinion now!
zendframework blog application example authorize zendacl styling


Gergely Hodicska's Blog:
Extending Zend_Acl to support custom roles and resources
November 30, 2007 @ 07:56:00

Gergely Hodicska has posted about some hacking he's down with the Zend_Acl package in the Zend Framework to make support for custom roles and resources.

I found that the base Zend_Acl package has some limitation/problem if you want to use it in a bigger real life project. Zend_Acl supports only logical roles, resources so I decided to extend it to allow using custom roles and resources which can represent existing entities (for example users/groups and topics in a database)

He talks some about the package and its current functionality, including the limitations he ran up against. He came up with a structure for what he wanted (seen here) and set out to extend the class, making an interface and implementing it with his own loading method.

His source code can be downloaded here.

0 comments voice your opinion now!
zendframework zendacl access control implement extend zendframework zendacl access control implement extend


Nick Halstead's Blog:
Zend Framework RC1 and Zend ACL usage
May 31, 2007 @ 07:52:00

Nick Halstead takes a look at another aspect of the Zend Framework in his latest blog post - the ACL component in the most recent release, Zend Framework RC1.

Yesterday RC1 of Zend Framework was released. I have been working away using it for several months and I have tried to give back small snippets of code as I went along. I had to do some work on my class that extends the Zend ACL and it reminded me how I like to approach coding as a whole.

He goes on to look at what the Zend Framework access control functionality is and how he plans on using it. He follows this with a few code snippets that, among other things, show how the Zend_Config_Ini component could be used to maintain the access list.

0 comments voice your opinion now!
accesscontrol zendacl zendframework zendconfigini accesscontrol zendacl zendframework zendconfigini


Zend Developer Zone:
Zend_Acl / Zend_Auth example scenario
February 08, 2007 @ 13:26:00

On the Zend Developer Zone, there's a new tutorial covering the use of the Zend_Acl and Zend_Auth modules in the Zend Framework to create a simple user login and authentication system from Simon Mundy.

After submitting the initial example of how Zend_Auth and Zend_Acl could be implemented Gavin pointed out areas that weren't really addressed in my proof of concept and it could potentially confuse newcomers to the way MVC is utilised. I'd like to clarify that post to a) Address those concerns and b) see if there's any constructive criticism of the process that could benefit everyone.

He sets up the site layout (including where the actions lie) and defines some of the access rules the script will follow. From there, he creates a bootstrap file and an index.php to work with it. On top of this, he builds the key piece - the Auth.php - to handle the validation of the users.

1 comment voice your opinion now!
zendframework module zendacl zendauth tutorial user authentication zendframework module zendacl zendauth tutorial user authentication



Community Events











Don't see your event here?
Let us know!


conference framework cakephp package example ajax security database release job releases zend developer application code book zendframework PEAR PHP5 mysql

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework