This extension simply extends CInputWidget to provide Farbtastic.
Requirements ¶
Works with Yii 1.1.x.
Usage ¶
It's really just a CInputWidget with a couple of asset manager calls. It assumes existing field values to be of type '#ff00ff' including the hash mark, and the view isn't exactly good, but it works fine with wide form. Modify according to taste.
$this->widget('ext.farbtastic.Farbtastic', array('model'=>$somemodel, 'attribute'=>'colorattr'));
input value
this widget don't save a value in input... just for style to use it... don't like not finished work !
when I add this code
$this->widget('ext.farbtastic.Farbtastic', array('model'=>$somemodel, 'attribute'=>'colorattr'));
Widget create a input file, and ... init script.
But when i Click SAVE - the input field value - IS EMPTY !
Now you understand what I meen ?
what?
I have no idea what you're talking about.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.