Skip to content

Instantly share code, notes, and snippets.

@martisj
Created March 15, 2012 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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