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.

Zend_Environment's Security Module

If you want to try it yourself, you’ll need to:

  • Check out the latest Zend Framework from SVN
  • Add the library and incubator/library directories 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.

[tags]php security, php, zend framework, zend_environment[/tags]