Writing a Zend_Auth_Adapter with Doctrine




Zend Screencasts: Video Tutorials about the Zend PHP Framework  (iphone) show

Summary: <p>I’ve been using Doctrine a lot in my own work, and recently found myself itching to have tighter integration between Zend and Doctrine when it comes to user logins. Luckily, Zend provides a very simple interface with regards to Zend_Auth. This way, it’s easy to decouple your persistence layer (in my case Doctrine) from the authentication layer. I’ve borrowed from <a href="http://palo-verde.us/?blog/2009/08/16/zend_auth-adapter-with-doctrine.html">Palo Verede’s wonderful article on Doctrine and Zend_Auth</a> and I invite you to check his blog out.</p> <p>Grab a <a href="http://zendcasts.googlecode.com/svn/trunk/zc43-writing-a-zend-auth-adapter-for-doctrine/zc43-writing-a-zend-auth-adapter-for-doctrine.zip">copy of the project</a> or <a href="http://code.google.com/p/zendcasts/source/browse/#svn/trunk/zc43-writing-a-zend-auth-adapter-for-doctrine&lt;br%20/&gt;%0A">browse the repository</a>.</p> <p>Also, a big thank you to ServerGrove for extending their support of Zendcasts for January. ServerGrove specializes in Zend Framework hosting and they’ve offered a 10% rebate on hosting with coupon code “zc”. If you’re looking for a host, be sure to <a href="http://secure.servergrove.com/clients/aff.php?aff=043">check them out (referral)</a>. They’ve also added an additional coupon for “Mini Hosting” plans, get $2 off by using code “zcmini”.</p>