I have the need to load a view from outside the scope of:
$this->load->view();
which appears to work from base/application/views
directory. How can I access a view from outside the /application/
directory ?
I assume i will have to extend the CI_Loader class
would this be the best way forward ?
I have also found the array which holds the view_paths:
// base/system/core/Loader.php
// CI_Loader
/**
* List of paths to load views from
*
* @var array
* @access protected
*/
protected $_ci_view_paths = array();
but the comment above all the declared variables has got me stuck
// All these are set automatically. Don't mess with them.
Any ideas on where to go from here would be greatly appreciated :-)
See Question&Answers more detail:os