_forControllerName = $this->_resource->getAttribute('forControllerName'); $this->_filesystemName = $this->_convertControllerNameToFilesystemName($this->_forControllerName); parent::init(); return $this; } /** * getPersistentAttributes() * * @return array */ public function getPersistentAttributes() { return array( 'forControllerName' => $this->_forControllerName ); } /** * getName() * * @return string */ public function getName() { return 'ViewControllerScriptsDirectory'; } protected function _convertControllerNameToFilesystemName($controllerName) { $filter = new Zend_Filter(); $filter->addFilter(new Zend_Filter_Word_CamelCaseToDash()) ->addFilter(new Zend_Filter_StringToLower()); return $filter->filter($controllerName); } }