render() public method

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