src/WidgetFactory.php
public function render($name, array $args = array())
    {
        if ($this->has($name)) {
            $callback = $this->widgets[$name];

            return $this->executeCallback($callback, $args);
        }

        return '';
    }
public function render($name, array $args = array())
    {
        if ($this->has($name)) {
            $callback = $this->widgets[$name];

            return $this->executeCallback($callback, $args);
        }

        return '';
    }
public function render ( $ name , array $ args = array ( ) ) { if ( $ this -> has ( $ name ) ) { $ callback = $ this -> widgets [ $ name ] ; return $ this -> executeCallback ( $ callback , $ args ) ; } return '' ; }
Render widget instance

@param string $name
@param array  $args

@return string
Render widget instance