Skip to content

Instantly share code, notes, and snippets.

@phawk
Created December 4, 2012 09:13
Show Gist options
  • Save phawk/4202090 to your computer and use it in GitHub Desktop.
Save phawk/4202090 to your computer and use it in GitHub Desktop.
<?php
private function dm_view($view, $path, $data = array()) {
$CI =& get_instance();
$tp = $CI->load->_ci_view_path;
$CI->load->_ci_view_path = $path;
$out = $CI->load->view($view, $data, true);
$CI->load->_ci_view_path = $tp;
return $out;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment