Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function display(){
- $viewname = JRequest::getVar('view', 'foo');
- $format = JRequest::getVar('format', 'html');
- if ($view = &$this->getView($viewname, $format)){
- $x =& $this->getModel('Bar');
- $view->setModel($x, true);
- }
- $view->display();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement