Welcome Guest, Not a member yet? Register   Sign In
calling controller function within the same controller
#1

[eluser]Unknown[/eluser]
my controller has two function index and is_loggin

how can called is_loggin function from index function?

i tried to do the followong:

function index()
{
if (is_logged_in($user)) {

.........

}
}



but it show this error:Call to undefined function is_logged_in().

How should i solve this?

thanks
#2

[eluser]geshan[/eluser]
use
unction index()
{
if ($this->is_logged_in($user)) {

.........

}
}




Theme © iAndrew 2016 - Forum software by © MyBB