Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function showformAction()
- {
- $viewmodel = new ViewModel();
- //$form = $this->getForm();
- $request = $this->getRequest();
- //disable layout if request by Ajax
- $viewmodel->setTerminal($request->isXmlHttpRequest());
- $is_xmlhttprequest = 1;
- $viewmodel->setVariables(array(
- 'is_xmlhttprequest' => $is_xmlhttprequest
- ));
- return $viewmodel;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement