Skip to content

Instantly share code, notes, and snippets.

@martisj
Created March 15, 2012 12:51
Show Gist options
  • Save martisj/2044049 to your computer and use it in GitHub Desktop.
Save martisj/2044049 to your computer and use it in GitHub Desktop.
template engine for the win
<?php $this->load->view('includes/header', (isset($header) ? $header : '')); ?>
<?php $this->load->view($view_to_load, (isset($main_content) ? $main_content : '')); ?>
<?php $this->load->view('includes/footer', (isset($footer) ? $footer : '')); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment