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 »

A blog has formed

September 11th, 2008 jasoneisen

In preparation for a ZendCon “unconvention” talk I’m giving about making ZF modules distributable, I’ve had to throw a quick demo app together to show how easy it is to install my security module into an existing application. I had initially hoped to check out planetarium, which is a blog app thats been brewing for quite a few weeks now, and I was especially excited to see huge amounts of files being pulled down when I did a repository checkout. But 4 libraries and 10 million lines of code later, I was rather disappointed to be presented with only a hello world page. Not gonna cut it!

So, considering the talk is on Tuesday, I’ve taken things into my own hands and spent the evening making this:

Currently, it’s nothing but controllers with empty actions, and their corresponding view files. This evening has just been building out the structure and getting design elements in order, which at the moment is a hacked up version of the Mollio template. But this will be a semi-functional blog app by the end of this weekend, I promise! And not to mention, it will have a handy security module ready to be installed, too :)

You can check it out in the security module repository under “demo” which, by the way, is also coming along nicely. Hopefully this talk will get some documentation out of me as well. (I’ve heard rumors that talks would be recorded and put online, too, but I’m not sure if its for unconvention talks.)

Go to the repository, pull it down, and try it out. It’ll only take 2 minutes… and if you break it who cares? You can make a bug report and I’ll fix it!

Tags: , , , , , ,

Posted in Doctrine, Zend | 3 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 »

XML Schemas and Doctrine

June 13th, 2008 jasoneisen

For those of you who detest yml (like me) I have written support back in for xml schemas in Doctrine. They have been gracious enough to set me up with my own svn branch, so you can check it out here: http://svn.phpdoctrine.org/branches/experimental/jason/.

This creates 3 new functions:

Doctrine::generateXmlFromYaml($yamlPath, $xmlPath, $options);
 
Doctrine::generateYamlFromXml($xmlPath, $yamlPath, $options);
 
Doctrine::generateModelsFromXml($xmlPath, $directory, $options);

No, the args for the models method aren’t backwards, I matched it to the current generateModelsFromYaml(). Enjoy :)

Tags:

Posted in Doctrine | 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 »