_loadProfile(self::NO_PROFILE_RETURN_FALSE, $path); if ($profile !== false) { require_once 'Zend/Tool/Framework/Client/Exception.php'; throw new Zend_Tool_Framework_Client_Exception('A project already exists here'); } $newProfile = new Zend_Tool_Project_Profile(array( 'projectDirectory' => $path, 'profileData' => $this->_getDefaultProfile() )); $newProfile->loadFromData(); $this->_registry->getResponse()->appendContent('Creating project at ' . $path); foreach ($newProfile->getIterator() as $resource) { $resource->create(); } } protected function _getDefaultProfile() { $data = << EOS; return $data; } }