Color Picker widget won't display

Permalink
Hi I used the following code to display the color picker in my single page:

$fh = Loader::helper('form/color');
$name = 'color';
$label = 'Color:';
$fh->output($name, $label, $value = null, $includeJavaScript = true);


But no display. Do you guys know the proper way of doing this one?

BreakfastStudio
 
BreakfastStudio replied on at Permalink Best Answer Reply
BreakfastStudio
print $fh->output($name, $label, $value = null, $includeJavaScript = true);

Doh.. The documentation is not that consistent with the other examples. It needs to be printed first like in the datetime function.