render() 공개 메소드

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