CodeIgniter Forums
Is it possible to include a CI controller status? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Is it possible to include a CI controller status? (/showthread.php?tid=28989)



Is it possible to include a CI controller status? - El Forum - 03-27-2010

[eluser]123wesweat[/eluser]
Hi all,

I am trying to get an user status based on a CI controller but on a non CI part of my website.

So i have created a checkstatus controller and when i directly approach the controller it works (login or logout). But when i try to include the output in a non CI part of my website it doesn't work

this is what i try in my non CI part
Code:
ob_start();
include('http://www.mydomain.com/checkstatus');
$return = ob_get_contents();
ob_end_clean();
echo $return;

Any tips?


Is it possible to include a CI controller status? - El Forum - 03-27-2010

[eluser]Rob Gordijn[/eluser]
try the php functions fopen and fread Smile