Yii 1.1: farbtastic

A good-looking color picker

This extension simply extends CInputWidget to provide Farbtastic.


Works with Yii 1.1.x.


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'));


Total 2 comments

#10932 report it
onre at 2012/12/04 11:54am

I have no idea what you're talking about.

#10931 report it
ApXaHgheJI at 2012/12/04 11:46am
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 ?

Leave a comment

Please to leave your comment.

Create extension