I have a class that does tax calculations and has to be accessed by the controllers.
My question is, what and how do I create it. If I use gii and want to create a module then I need a database table. What is the best to do in this scenario?
//TaxCalculator class in directory extensions/myClasses/TaxCalculator.php
Yii::import('ext.myClasses.TaxCalculator');
$calculator = new TaxCalculator();
$calculator->calculate();