Skip to content

Instantly share code, notes, and snippets.

@BigBlueHat
Created August 12, 2009 15:57
Show Gist options
  • Save BigBlueHat/166589 to your computer and use it in GitHub Desktop.
Save BigBlueHat/166589 to your computer and use it in GitHub Desktop.
function beforeRender()
{
if ($this->params['url']['ext'] == 'html') {
$this->viewPath .= '/xml';
$this->layoutPath = 'xml';
}
$this->RequestHandler->respondAs($this->layoutPath);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment