Welcome Guest, Not a member yet? Register   Sign In
How to use my own library multiple times
#7

Hi,

(11-02-2015, 01:49 PM)ciadmin Wrote: Approach that will work for you, with your source in application/libraries/Pricecalculator.php :

$this->load->library('pricecalculator');
$a = new Pricecalculator(Product1,Rate1);
$b = new Pricecalculator(Product2,Rate1);

is this the right way or is there a better solution how to do that? Is this a case for a library?
Reply


Messages In This Thread
RE: How to use my own library multiple times - by groovebird - 11-02-2015, 02:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB