Created
August 22, 2009 18:54
-
-
Save hobodave/172912 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| error_reporting(E_ALL); | |
| $options['storage']['registry'] = 1; | |
| if (isset($options['storage']) && | |
| isset($options['storage']['registry']) && | |
| isset($options['storage']['registry']['key'])) | |
| { | |
| echo "WTF"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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