View Single Post
  #2 (permalink)  
Old 03-24-2008, 05:47 PM
friedhelm friedhelm is offline
Junior Member
 
Join Date: Mar 2008
Posts: 12
Thumbs up Solved

Answering myself, bit too late yesterday ;-)
Quote:
Originally Posted by friedhelm View Post
Hi,
sorry to ask such a simple newbie question, I just started to work with ZF.

Simplest form:
Code:
<?php
require_once('Zend/Loader.php');
Zend_Loader::registerAutoload();
$form = new Zend_Form();
$form->addElement('text', 'username');
$form->addElement('password', 'password');
$form->addElement('submit', 'login');
?>
Simply added
Code:
$form->setView(new Zend_View());
echo $form;
Thanks,
Friedhelm
Reply With Quote