getView('latest', 'html'); $model = $this->getModel('itemlist'); $view->setModel($model); $itemModel = $this->getModel('item'); $view->setModel($itemModel); $user = JFactory::getUser(); if ($user->guest) { $cache = true; } else { $cache = false; } parent::display($cache); } }