• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how do you load a library for all pages in a controller?

#1
[eluser]Abel A.[/eluser]
Lets say I want to load a library in all my pages, how would I do that instead of calling it on each function?

Example:
Code:
class login extends CI_Controller {

public function index()
{
  $this->load->helper('url');
}

public function forgot()
{
  $this->load->helper('url');

}

public function activate()
{
  $this->load->helper('url');
}

}


Messages In This Thread
how do you load a library for all pages in a controller? - by El Forum - 05-26-2012, 10:41 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.