News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



feed this:

Lee Blue's Blog:
How To Implement A Ruby on Rails style before_filter With The PHP Zend Framework
0 comments :: posted Monday February 04, 2008 @ 14:36:00
voice your opinion now!

Lee Blue has posted something looking to bridge yet another gap between Ruby on Rails and PHP - a method for adding before_filter functionality to PHP.

I often use this when implementing a simple login screen for a password protected section of my application. In a Zend Framework application you can implement a preDispatch() function in a Zend_Controller_Action which will run before an action is dispatched. This lets you setup your filter to check to see if the visitor is logged in or not. If the visitor is not logged in, you can redirect them to the login screen of your application.

He includes example code to show its usefulness - checking to see two things: is a user is logged in and to see if they're allowed to use a certain resource.

tagged with: rubyonrails zendframework beforefilter user access permission


PHPGeek.com:
Using AuthComponent for Access Control in CakePHP
0 comments :: posted Friday July 20, 2007 @ 12:53:00
voice your opinion now!

On PHPGeek.com, there's a new post talking about the use of the AuthComponent for CakePHP for access control in your application. It's not a tutorial, but it does follow how the developer came upon the component and why they're using it.

Nearly everything that is built needs at least some level of authentication and authorization before users can be let loose to use it. Unfortunately, not only is there a lot of confusion out there on how to use it, but lots of poorly done, reinvented wheels out there because of it.

He points out the solution he came across via another article from the "Another Cake Baker" blog (lemoncake) show how to use the component for ACL in CakePHP 1.2.

tagged with: authentication control cakephp access control authentication control cakephp access control


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

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