kartik-v / yii2-widget-activeform

Enhanced Yii2 active-form and active-field with full bootstrap styling support (sub repo split from yii2-widgets).
http://demos.krajee.com/widget-details/active-form
Other
64 stars 35 forks source link

Undefined class constant 'MOBILE_COUNTRY_CODE' #124

Closed poovizhi796 closed 4 years ago

poovizhi796 commented 4 years ago

In Model page, public function rules() { $rules = [ [[self::SMS_ACCOUNT_ID, self::SMS_AUTH_TOKEN, self::SMS_SENDER_ID,self::SMS_COUNTRY_CODE, self::MOBILE_COUNTRY_CODE], 'required'], ]; }

View Page:

field($model, $model::MOBILE_COUNTRY_CODE)->textInput(['type' => 'number']); ?>
kartik-v commented 4 years ago

Sorry not related to this extension. Seems some coding issue at your end. Please use this repo to report only bugs/enhancements related to this extension.