Skip to content

Instantly share code, notes, and snippets.

@bayleedev
Created February 22, 2013 00:21
Show Gist options
  • Save bayleedev/5009734 to your computer and use it in GitHub Desktop.
Save bayleedev/5009734 to your computer and use it in GitHub Desktop.
/**
* Define application view paths
*/
protected function _init() {
$this->_render['renderer'] = 'File';
$this->_render['paths']['template'] = '{:library}/views/{:controller}/';
$this->_render['paths']['template'] .= '{:template}.{:type}.php';
$this->_render['paths']['layout'] = '{:library}/views/layouts/default.{:type}.php';
$this->_render['paths']['element'] = '{:library}/views/elements/{:template}.html.php';
parent::_init();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment