public function rules() { return [[['title', 'name'], 'required'], ['name', 'match', 'pattern' => '/^[a-z]+$/'], ['name', 'unique', 'targetClass' => Module::className()]]; }
public function behaviors() { return [['class' => SortableController::className(), 'model' => Module::className()], ['class' => StatusController::className(), 'model' => Module::className()]]; }