I’m new to Yii framework. I’ve been reading, learning and using the framework since the last couple months.
I’m now facing a problem with the 2amigos widget that wraps the blueimp basic file upload. The widget itself works correctly but I’d like to benefit the advantages of the activeField since the file input is in an activeForm. Actually I’m setting some rules in the model but the client validation isn’t working. Also the label, error and hint are not generated. I’d like to know how to convert a widget to an activeField.
I was thinking of extending the activeField class and override the fileInput method (or create a new one) to call the Widget->run() method to generate the html and js. Is it the good approach?