Skip to content

Instantly share code, notes, and snippets.

@apeisa
Created April 4, 2012 21:04
Show Gist options
  • Save apeisa/2305638 to your computer and use it in GitHub Desktop.
Save apeisa/2305638 to your computer and use it in GitHub Desktop.
$f = PwForm('Contact', './')
->setRenderer( fxForm::BASIC )
->setPwTemplate ( 'contact_form' )
->setPwParent ( '/contact_us/' )
->add( PwInput()->name('fullname')->required() )
->add( PwInput('Email', 'Your email address')->type('email')->required() )
->add( PwInput()->name('body')->required() )
->add( Submit('Send') )
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment