CodeIgniter Forums
Login codes - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Login codes (/showthread.php?tid=59696)



Login codes - El Forum - 11-06-2013

[eluser]davy_yg[/eluser]

Hello,

can anyone help me explain the following codes:

where does signed_in() come from ? If it is the extends of MY_Controller then, where can I find MY_Controller or is it a default code from CI ? Thanks before.

Code:
class Login extends MY_Controller {



public function index()

{

  if ($this->signed_in())

   redirect_admin();

  else

   $this->load->view('login');

}



Login codes - El Forum - 11-06-2013

[eluser]Tpojka[/eluser]
Probably in application/core folder. Which library you use?


Login codes - El Forum - 11-06-2013

[eluser]davy_yg[/eluser]

In application/core I only find one file: index.html


Login codes - El Forum - 11-07-2013

[eluser]Tpojka[/eluser]
What library that is not native you use?
In those documentation should be described.