hasOne('HelpCategory', 'id', 'cid'); } public function setContentAttr($value,$data) { $content = $data['content']; if (!empty($content)) { $content = HtmlSetImage($content); } return $content; } public function getContentAttr($value,$data) { $content = $data['content']; if (!empty($content)) { $content = HtmlGetImage($content); } return $content; } }