Advertisement
Guest User

Untitled

a guest
Oct 30th, 2013
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1.     public function showformAction()
  2.     {
  3.         $viewmodel = new ViewModel();
  4.         //$form       = $this->getForm();
  5.         $request = $this->getRequest();
  6.          
  7.         //disable layout if request by Ajax
  8.         $viewmodel->setTerminal($request->isXmlHttpRequest());
  9.          
  10.         $is_xmlhttprequest = 1;
  11.          
  12.         $viewmodel->setVariables(array(
  13.             'is_xmlhttprequest' => $is_xmlhttprequest
  14.         ));
  15.          
  16.         return $viewmodel;
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement