php - Syntax for rendeing a zend form in a non zend project -


i'm using zend form in non-zend project , i'm able access zend_form fine custom class custom_form. in file want render form, create instance of form, i'm not sure how render it.

$form = new custom_form(); //how render form here var_dump($form); //var_dump looks busy couldn't find info 

this should work, need view script , call render(); method.

$view = new zend_view(); $view->doctype('xhtml1_transitional');  $form = new custom_form(); $form->setview(new zend_view());  echo $form->render(); 

Comments

Popular posts from this blog

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -

openssl - Load PKCS#8 binary key into Ruby -