[eluser]Mossab Alzeeny[/eluser]
[quote author="invi" date="1231295672"]Hello everybody, I have similar problem to jaswinder_rana's. I'm using dx_auth and when I insert this kind of code in my view file:
============
<?
if (! $this->dx_auth->is_logged_in())
{
$this->load->view('auth/logowanie
.php');
}
else
{
$this->load->view('auth/menu
.php');
}
?>
===========
I have an error:
A PHP Error was encountered
Severity: Notice
Message: Undefined property: CI_Loader::$dx_auth
Filename: views/index.php
Line Number: 28
Fatal error: Call to a member function is_logged_in() on a non-object in public_html/system/application/views/index.php on line 28
Could you help me with this?
[/quote]
you dont need to put the extension in view path
and for the error, make sure you load the DX_auth library
Code:
$this->load->library('dx_auth');
Regards.