Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14348

How to include Codeigniter from external page?

$
0
0
I want to be able to check a page outside of the CodeIgniter environment to see if a user is logged in.

My setup might be as follows:

test.php

/codeigniter/index.php

In my CodeIgniter application, I have a method which checks to see if a user loggedin:

if($this->user->loggedin) {
// Logged in
} else {
// not logged in
}

It's basically calling my user class and checking the loggedin variable. It's easy to use inside the CodeIgniter environment.

How can I use the CodeIgniter functions from my script test.php?

Viewing all articles
Browse latest Browse all 14348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>