input; /* * Set the template - this will display cpanel.php * from the selected admin template. */ $input->set('tmpl', 'cpanel'); // Display the cpanel modules $this->modules = JModuleHelper::getModules('cpanel'); try { $messages_model = FOFModel::getTmpInstance('Messages', 'PostinstallModel')->eid(700); $messages = $messages_model->getItemList(); } catch (RuntimeException $e) { $messages = array(); // Still render the error message from the Exception object JFactory::getApplication()->enqueueMessage($e->getMessage(), 'error'); } $this->postinstall_message_count = count($messages); parent::display($tpl); } }