/** * @inheritdoc */ public function renderView() { $view = new View('Engines/101'); $view->game = $this->game; $view->bestShots = $this->getPlayersBestShots(); return $view->render(); }
public function renderStats() { $view = new View('Engines/cricket_stats'); $view->game = $this->game; return $view->render(); }
public function renderAjaxView($viewName = null) { $view = $this->view->render($viewName ?: $this->getViewName()); $this->layout->renderAjax($view); }
function showWarnings(array $warnings = array()) { if ($warnings) { $warningView = new View('warning_alert'); $warningView->warnings = $warnings; return $warningView->render(); } return null; }