// return Yii::app()->params['paypalCurrencySign']." ".number_format($value, 2); // Jun 27, 2014 ANH DUNG tạm thời đóng dòng trên lại $number_left = substr(strrchr($price, "."), 1); $sign = MyFormat::getSignCurrency(); if ($number_left > 0) { $res = number_format((double) $price, 2); } else {
protected function beforeSave() { $this->position = MyFormat::removeScriptTag($this->position); $this->phone = MyFormat::removeScriptTag($this->phone); $this->comment = MyFormat::removeScriptTag($this->comment); return parent::beforeSave(); }