×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Greg
Added: Aug 19, 2015 3:32 PM
Modified: Aug 19, 2015 3:41 PM
Views: 14
Tags: ajax view zend
create a zend view to a variable
  1.         $form_view = new Zend_View();
  2.         $form_view->setScriptPath(array(APPLICATION_PATH.'/views'));
  3.         $form_view->newsletterForm = $newsletterForm;
  4.  
  5.         if ($returnArray['success']) {
  6.             $form_html = $form_view->render('/scripts/partials/newsletter-signup-thanks.phtml');
  7.         }
  8.         else
  9.         {
  10.             $form_html = $form_view->render('/scripts/partials/newsletter-signup-box.phtml');
  11.         }
  12.         $returnArray['html'] = $form_html;