public function renderRaw($module, $theme, $template, array $vars = array())
    {
        // Save initial values before overriding theme
        $initialLayout = $this->layout;
        $initialModule = $this->module;
        $initialTheme = $this->theme;

        // Configure view with new values
        $this->setModule($module)
             ->setTheme($theme)
             ->disableLayout();

        $response = $this->render($template, $vars);

        // Restore initial values now
        $this->layout = $initialLayout;
        $this->module = $initialModule;
        $this->theme = $initialTheme;

        return $response;
    }
public function renderRaw($module, $theme, $template, array $vars = array())
    {
        // Save initial values before overriding theme
        $initialLayout = $this->layout;
        $initialModule = $this->module;
        $initialTheme = $this->theme;

        // Configure view with new values
        $this->setModule($module)
             ->setTheme($theme)
             ->disableLayout();

        $response = $this->render($template, $vars);

        // Restore initial values now
        $this->layout = $initialLayout;
        $this->module = $initialModule;
        $this->theme = $initialTheme;

        return $response;
    }
public function renderRaw ( $ module , $ theme , $ template , array $ vars = array ( ) ) { // Save initial values before overriding theme $ initialLayout = $ this -> layout ; $ initialModule = $ this -> module ; $ initialTheme = $ this -> theme ; // Configure view with new values $ this -> setModule ( $ module ) -> setTheme ( $ theme ) -> disableLayout ( ) ; $ response = $ this -> render ( $ template , $ vars ) ; // Restore initial values now $ this -> layout = $ initialLayout ; $ this -> module = $ initialModule ; $ this -> theme = $ initialTheme ; return $ response ; }
Renders a template with custom Module and its theme

@param string $module
@param string $theme Theme directory name
@param string $template Template file to be rendered
@param array $vars Variables to be passed to a template
@return string
Renders a template with custom Module and its theme