public static function showFormLB($formId, $contactId = null) { $db = Zend_Registry::get('db'); $themePath = NET_PATH . "widgets/"; $host = ViewController::$host; $view = new Zend_View(); $view->addScriptPath($themePath . "templates/"); //$formList = $db ->fetchAll("SELECT * FROM contact_forms WHERE id = ?", array($formId)); $form['contactForm'] = FormsController::_contactForm($formId, $contactId); //$form['title'] = ucwords($formId[0]['formName']) . ' Form'; $view->assign($form); $scriptName = "modForms.phtml"; $partialOutput = $view->render($scriptName); return $partialOutput; }