Skip to content

Instantly share code, notes, and snippets.

@hobodave
Created August 22, 2009 18:54
Show Gist options
  • Select an option

  • Save hobodave/172912 to your computer and use it in GitHub Desktop.

Select an option

Save hobodave/172912 to your computer and use it in GitHub Desktop.
<?php
error_reporting(E_ALL);
$options['storage']['registry'] = 1;
if (isset($options['storage']) &&
isset($options['storage']['registry']) &&
isset($options['storage']['registry']['key']))
{
echo "WTF";
}
<?php
/**
* Stores navigation container in the registry
*
* @return void
*/
protected function _storeRegistry()
{
$options = $this->getOptions();
if(isset($options['storage']) &&
isset($options['storage']['registry']) &&
isset($options['storage']['registry']['key']))
{
$key = $options['storage']['registry']['key'];
} else {
$key = self::DEFAULT_REGISTRY_KEY;
}
Zend_Registry::set($key,$this->getContainer());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment