Dear all;
I have a problem about how the controller work. It seem that controller is run twice. I save payment model one time but i get 2 records in db. pls help me.
thanks
my code
public function actionIndex()
{
$payment = new Payment;
$payment->product_id = 5;
echo $payment->save();
}