In OOP (PHP, in my case),
class Hello{
__construct($a, $b){
return $a * $b;
}
}
we pass the value to constructor as:
$hello = new Hello(5, 10);
Now, in codeigniter i have this library as Hello.
class Hello{
__construct($a, $b){
return $a * $b;
}
}
and have loaded this library to my controller as
$this->load->library('hello');
How am i to pass argument on hello class for its constructor? any help will be greatly appreciated.