public function afterFind() { if ($this->dateDBformat) { $this->dateDBformat = false; $this->src_date = date(Yii::app()->locale->getDateFormat('phpshort'), strtotime($this->src_date)); } return parent::afterFind(); }
/** * Returns the static model of the specified AR class. * @param string $className active record class name. * @return Docs the static model class */ public static function model($className = __CLASS__) { return parent::model($className); }