Thursday, March 01, 2007
Zend_Environment’s Security Module In Action
I just checked in a bunch of bug fixes that get the security module of Zend_Environment working properly.
If you want to try it yourself, you’ll need to:
- Check out the latest Zend Framework from SVN
- Add the
libraryandincubator/librarydirectories from the SVN checkout to your include path - Do some code-foo like this:
require 'Zend.php'; function __autoload($class) { Zend::loadClass($class); } $sec = new Zend_Environment_Module_Security('sec'); $ze = new Zend_Environment(array($sec)); echo $ze->toHtml();
There’s a lot more you can do with the Zend_Environment package that’s all due to Simon Mundy’s kickass work (more modules, you can iterate over results, query for settings, etc). I’ll try to cover some other usage scenarios in upcoming posts.
(0) Comments – Post a comment


