Skip to content
Some usefull ZF stuff
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
library/Myself/Form
LICENSE
README

README

Myself_Lib (c) 2010 David Heidrich

Myself_Lib is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Extending Zend Framework

Collection of some usefull components

1. Myself_Form
	A multipage form controller, uses Zend_Form subforms to create multiple Pages
	See also: http://framework.zend.com/manual/en/zend.form.advanced.html
	
Examples:

	// Basic Multiple Form Controller
   class MyController extends Myself_Form_Page_Controller
    {
	
  	public function getForm ()
	{
	       if (null === $this->_form) {
	           $this->_form = new Myself_Form_Example();
	       }
	       return $this->_form;
	   }
	
 	function handleData(Myself_Form_PageAble $form){
	       var_dump($form->getValues());       
	        return $this->_forward('complete');
	}
	    
	   public function completeAction(){
	        
	    }
   }

   // Basic PageAble Form
   class Myself_Form_Example extends Myself_Form_PageAble
  {
  		
  	public function createForm(){
  		
  	$form = new Myself_Form_Page();
  	// Add some more Pages
  	$this->addPages(array('erste' => $form));
  		
  	}
  }
Something went wrong with that request. Please try again.