Welcome Guest, Not a member yet? Register   Sign In
Is it possible to include a CI controller status?
#1

[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?
#2

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




Theme © iAndrew 2016 - Forum software by © MyBB