Vulnero

Seamless WordPress and Zend Framework Integration

The WordPress configuration is primarily stored in the wp_options database table and made available through global namespace functions like get_bloginfo. Several of these values are loaded and cached during Vulnero's bootstrap and made available to you by querying a Zend_Config object. Here's an example of accessing the siteurl property from within a controller:

public function visitAction()
{
     $bootstrap = $this->getInvokeArg('bootstrap');
     $config = $bootstrap->getOptions();

     $this->view->siteurl = $config['wordpress']['siteurl'];
}

The names of the configuration indices match the results of get_bloginfo if implemented, so for a complete reference of available properties, see this WordPress Codex.