qtip is widget extension that makes the use easier of the jquery qTip plugin and that also beautify CActiveForm with or without ajax validation enabled - and adding also hints tooltips.
I have just downloaded qtip2, but I encountered the error
Redefining already defined constructor for class QTip
/mysite/protected/extensions/qtip/QTip.php(59)
47* @param minify bool true to select the minified js script
48 */
49 public static function qtip($jsSelector, $options = array(), $minify = true) {
50 if (! empty($minify)) self::registerScript(self::scriptName($minify));
51
52 Yii::app()->clientScript->registerScript(__CLASS__.$jsSelector, '$("'.$jsSelector.'").qtip('.CJavaScript::encode($options).');');
53 }
54
55 public $minify = true; // true to select the minified js script
56
57 public $options = array(); // array general qtip js options
58
59 public function __construct($params = array()) {
60 foreach ($params as $p => $val) $this->$p = $val;
61 }
62
63 /**
64 * @brief instance method to apply qtip on a widget or on any html item. can override general options.
65 * @param widgetOrSelector mixed a widget instance or a jquery selector
66 * @param specific_opts specific options to pass to qtip javascript code
67 */
68 public function addQTip($widgetOrSelector, $specific_opts = array()) {
69 $jsSelector = is_string($widgetOrSelector) ? $widgetOrSelector : '#'.$widgetOrSelector->id;
70 self::qtip($jsSelector, array_merge($this->options, $specific_opts), $this->minify);
71 }
Does anybody encountered this too? Is it because I am using Yii 1.1.6? How can I fix this?