public function afterFind() { $this->tags = $this->getTags(); $this->publish_time = date('d-m-Y H:i', $this->publish_time); parent::afterFind(); }