Skip to content

Instantly share code, notes, and snippets.

@dragoonis
Created June 12, 2011 23:29
Show Gist options
  • Save dragoonis/1022125 to your computer and use it in GitHub Desktop.
Save dragoonis/1022125 to your computer and use it in GitHub Desktop.
<?php
/**
* The main render function that pull in data from all framework components to render this page.
*
* @param string $template
* @param array $options
* @return void
*/
protected function render($template, array $options = array()) {
$core = $this->_request->getRenderVars();
$core = array_merge($core, $this->_response->getRenderVars());
$options['core'] = $core;
$this->_view->render($template, $options);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment