public function create()
    {
	    $formContainer = new Extension();
	    $myForm = $formContainer->getForm();

	    if ($myForm->isValid() && $myForm->isSubmited()) {
	        $creator = new ExtensionCreator(
	            $myForm->getValue('name'),
	            $myForm->getValue('label'),
	            $myForm->getValue('version'),
	            $myForm->getValue('author'),
	            $myForm->getValue('authorNs'),
	            $myForm->getValue('license'),
	            $myForm->getValue('description'),
	            $myForm->getValue('dependencies'),
	            $myForm->getValue('samples')
            );
	        $report = $creator->run();
	        $this->setData('myForm', __('Extension created'));
	    } else {
	        $this->setData('myForm', $myForm->render());
	    }

	    $this->setData('formTitle', __('Create a new Extension'));
	    $this->setView('form.tpl', 'tao');
	}
public function create()
    {
	    $formContainer = new Extension();
	    $myForm = $formContainer->getForm();

	    if ($myForm->isValid() && $myForm->isSubmited()) {
	        $creator = new ExtensionCreator(
	            $myForm->getValue('name'),
	            $myForm->getValue('label'),
	            $myForm->getValue('version'),
	            $myForm->getValue('author'),
	            $myForm->getValue('authorNs'),
	            $myForm->getValue('license'),
	            $myForm->getValue('description'),
	            $myForm->getValue('dependencies'),
	            $myForm->getValue('samples')
            );
	        $report = $creator->run();
	        $this->setData('myForm', __('Extension created'));
	    } else {
	        $this->setData('myForm', $myForm->render());
	    }

	    $this->setData('formTitle', __('Create a new Extension'));
	    $this->setView('form.tpl', 'tao');
	}
public function create ( ) { $ formContainer = new Extension ( ) ; $ myForm = $ formContainer -> getForm ( ) ; if ( $ myForm -> isValid ( ) && $ myForm -> isSubmited ( ) ) { $ creator = new ExtensionCreator ( $ myForm -> getValue ( 'name' ) , $ myForm -> getValue ( 'label' ) , $ myForm -> getValue ( 'version' ) , $ myForm -> getValue ( 'author' ) , $ myForm -> getValue ( 'authorNs' ) , $ myForm -> getValue ( 'license' ) , $ myForm -> getValue ( 'description' ) , $ myForm -> getValue ( 'dependencies' ) , $ myForm -> getValue ( 'samples' ) ) ; $ report = $ creator -> run ( ) ; $ this -> setData ( 'myForm' , __ ( 'Extension created' ) ) ; } else { $ this -> setData ( 'myForm' , $ myForm -> render ( ) ) ; } $ this -> setData ( 'formTitle' , __ ( 'Create a new Extension' ) ) ; $ this -> setView ( 'form.tpl' , 'tao' ) ; }
Form to create a new extension
Form to create a new extension