[eluser]Unknown[/eluser]
I want to load library once on controller, without having to declare again load->library in each function.
Can?
Example Current:
Code:
class Blog extends CI_Controller {
public function index()
{
$this->load->library("xxx");
echo 'Hello World!';
}
public function comments()
{
$this->load->library("xxx");
echo 'Look at this!';
}
}
Example Affter:
Code:
class Blog extends CI_Controller {
public function ....{
$this->load->library("xxx");
}
public function index()
{
echo 'Hello World!';
}
public function comments()
{
echo 'Look at this!';
}
}
Aahh and without autoload!