public function behaviors()
{
$module = Yii::app()->getModule('news');
return ['imageUpload' => ['class' => 'yupe\\components\\behaviors\\ImageUploadBehavior', 'attributeName' => 'image', 'minSize' => $module->minSize, 'maxSize' => $module->maxSize, 'types' => $module->allowedExtensions, 'uploadPath' => $module->uploadPath]];
}