Security Module Screencast

October 14th, 2008 jasoneisen

I made this screencast a few weeks ago but forgot to post it.

It demonstrates setting up the security module in an existing project (a blog demo, which is also available in the repository).

Watch and learn!

Also, I have been asked how to access the ACL and things of that nature for use inside your own application. Basically, all of the methods that this provides can be found in the Security.php file in the library, and each are static methods. So for example to get the ACL object, you would use:

<?php
 
$acl = Security::getAclInstance();
 
?>

Hope this helps. I will be providing a better documentation soon.

Tags: , , , ,

Posted in Doctrine, Security Module, Zend | 4 Comments »

The full blown Doctrine + ZF ACL module has arrived

August 26th, 2008 jasoneisen

Pasted from the google code page:

8-25-08: First release 0.1 alpha 1!

The module is now in a usable state. Simply check it out to your application/modules folder:

http://zfsecurity.googlecode.com/svn/tags/0.1-ALPHA1/

and point your browser to site.com/security/install. There is a step-by-step installer that will guide you, and you will only need to write a few lines of code to your project.

This provides a full ACL framework, as well as login authorization, group/ user management, and more. All database driven with a friendly UI.

This project assumes only the following:

You already have a project.
You are currently using Doctrine.
You already have an innodb user table.

Check it out and enjoy! Any/all feedback is very welcome.

Tags: , , , , ,

Posted in Doctrine, Zend | 4 Comments »

REST for Zend Framework

July 3rd, 2008 jasoneisen

I’ve created a small library to make my ZF apps more RESTful. If you’d like to take a look: http://code.google.com/p/restfulphp/.

Credit to Jani and David

Best examples I can provide at the moment are in the demo folder. The routes act nearly identical to those found in the pdf here.

$this->Url(array(), ‘plural_path’);
$this->Url(array(’id’=>$id), ‘edit_singular_path’);
etc…

I’ll post some better documentation and usage soon, but it’s a 3 day weekend coming up, plus it’s my birthday sat, so it may be a few days :)

Tags: , , , ,

Posted in Doctrine, REST, Zend | 2 Comments »

Zend_Auth_Adapter_Doctrine_Table is ready for review

June 16th, 2008 jasoneisen

David Werner and I worked together to give Zend_Auth the ability to authenticate using Doctrine’s DBAL. The new proposal is ready for review here. Check it out and let us know if you have any comments/questions/concerns :)

Tags: , , ,

Posted in Doctrine, Zend | No Comments »

Zend Framework and Doctrine

June 1st, 2008 jasoneisen

I’m currently working on a fairly complex (database-wise) project that makes use of nested transactions, and having failed to do my homework beforehand, a little while ago I came to find out the hard way that Zend_Db doesn’t support them (yet). After looking around rather quickly at my options I decided to use Doctrine as a replacement database abstraction layer. Although it is quite different the way it operates (Zend_Db is not an ORM like Doctrine), the fundamentals are somewhat the same, but even still every single one of my application’s queries would have to be rewritten.

Read the rest of this entry »

Tags: , , , ,

Posted in Doctrine, Zend | 4 Comments »