CodeIgniter Forums
Library inside library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Library inside library (/showthread.php?tid=5160)

Pages: 1 2


Library inside library - El Forum - 01-09-2008

[eluser]tonanbarbarian[/eluser]
and the code that is loading and calling this library?


Library inside library - El Forum - 01-09-2008

[eluser]Sawariya[/eluser]
class CI_Userauth {

var $obj;

function CI_Userauth()
{
$this->obj =& get_instance();
$this->obj->load->model('user_group_model', '', TRUE);
$this->obj->load->model('remember_me', '', TRUE);
$this->obj->load->library('ua_authorize');
log_message('debug',
'User Authentication Class Initialised via '.get_class($this->obj));
}
}


Library inside library - El Forum - 01-09-2008

[eluser]Craig A Rodway[/eluser]
Sawariya: So we can help you, please show us the code for controllers/front.php - we are particularly interested to see how you are loading your libraries and for line 44.

It would also help for you to use [ code ] tags to make it look more readable.


Library inside library - El Forum - 01-09-2008

[eluser]tonanbarbarian[/eluser]
sorry but i cannot help you
i still do not see where rolecheck is being called
please provide the controller that is loading CI_Userauth
and as I mentioned before I suggest your rename CI_Userauth to just Userauth as the CI prefix is handled differently and could be the cause of the problem.


Library inside library - El Forum - 01-09-2008

[eluser]Sawariya[/eluser]
thanks everybody .. now its working properly ..

thank you very much for your help...


thanks a lot


Library inside library - El Forum - 01-09-2008

[eluser]Craig A Rodway[/eluser]
What was the problem?


Library inside library - El Forum - 01-09-2008

[eluser]Sawariya[/eluser]
this was the solution for that..

$this->obj->ua_authorize->roleCheck();


Library inside library - El Forum - 01-09-2008

[eluser]Sawariya[/eluser]
thank you friends..
thank you very much for your response...