How to include CodeIgniter generated pages?
codeigniter, include, php
Solution
As I couldn't seem to invoke the CI controller's functions, I decided it's easiest to simply load the page with jQuery:
$('#myDiv').load('ci/index.php/mycontroller', {}, function(){
$('#myDiv #loading').hide();
$('#myDiv #data').slideDown(500);
});
Problem
What would be the easiest way to include a CI file? Let's say I want to include http://example.com/ci/index.php/mycontroller/ on example.com example.com doesn't run CI and I can't do include('ci/index.php/mycontroller').