public function renderDefault($view, $params = [], $context = null)
    {
        //find default view file
        $file = $this->findDefaultViewFile($view, $this);

        return $this->renderFile($file, $params, $context);
    }
public function renderDefault($view, $params = [], $context = null)
    {
        //find default view file
        $file = $this->findDefaultViewFile($view, $this);

        return $this->renderFile($file, $params, $context);
    }
public function renderDefault ( $ view , $ params = [ ] , $ context = null ) { //find default view file $ file = $ this -> findDefaultViewFile ( $ view , $ this ) ; return $ this -> renderFile ( $ file , $ params , $ context ) ; }
Renders a default view.

@param string $view    the view name.
@param array  $params  the parameters (name-value pairs) that will be extracted and made available in the view
file.
@param object $context the context to be assigned to the view and can later be accessed via [[context]]
in the view. If the context implements [[ViewContextInterface]], it may also be used to
locate the view file corresponding to a relative view name.

@return string the rendering result
@throws InvalidParamException if the view cannot be resolved or the view file does not exist.
@see renderFile()
Renders a default view .