Hi All,
This seems like a really simple thing that I just can't get my head around. I have an object with a currency variable on it. I want to be able to divide that variable by 4 and create a new variable. The code I've tried is below. Help much appreciated.
The $Total variable comes from a many_many relationship managed by the dataobjectmanager.
class Flatmate_Controller extends Page_Controller {
function eaPayment($Total) {
$num = 4;
$ea = $Total/$num;
return $ea;
}
}