Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.39 KB | None | 0 0
  1.         function display(){
  2.                 $viewname = JRequest::getVar('view', 'foo');
  3.                 $format = JRequest::getVar('format', 'html');
  4.                 if ($view = &$this->getView($viewname, $format)){
  5.                        $x =& $this->getModel('Bar');
  6.                         $view->setModel($x, true);
  7.                 }
  8.                 $view->display();
  9.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement