Welcome Guest, Not a member yet? Register   Sign In
Where to put certain code
#11

[eluser]invi[/eluser]
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:
Code:
<?
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? Sad


Messages In This Thread
Where to put certain code - by El Forum - 12-13-2008, 11:05 AM
Where to put certain code - by El Forum - 12-13-2008, 06:05 PM
Where to put certain code - by El Forum - 12-13-2008, 11:03 PM
Where to put certain code - by El Forum - 12-13-2008, 11:22 PM
Where to put certain code - by El Forum - 12-14-2008, 08:20 AM
Where to put certain code - by El Forum - 12-14-2008, 12:22 PM
Where to put certain code - by El Forum - 12-14-2008, 01:03 PM
Where to put certain code - by El Forum - 12-14-2008, 01:46 PM
Where to put certain code - by El Forum - 12-14-2008, 02:05 PM
Where to put certain code - by El Forum - 12-14-2008, 02:39 PM
Where to put certain code - by El Forum - 01-06-2009, 02:34 PM
Where to put certain code - by El Forum - 01-06-2009, 02:42 PM
Where to put certain code - by El Forum - 01-07-2009, 09:47 AM
Where to put certain code - by El Forum - 01-07-2009, 09:50 AM
Where to put certain code - by El Forum - 01-07-2009, 11:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB