CJuiInputWidget Problem

Hi,

i have a problem with the CJuiInputWidget.

i have inserted the widget into a view:


$this->widget('zii.widgets.jui.CJuiInputWidget', array(

    'id' => 'input-new-machine',

    'name' => 'testinput',

));

when i open the view i become the following error:


Fatal error: Cannot instantiate abstract class CJuiInputWidget in C:\xampp\xampp_1-6-3a\htdocs\myproject\inc\yii\framework\web\CWidgetFactory.php on line 148

Yii Version: 1.1.3

any ideas?? bug?

that’s not a bug.

This class is abstract, that means that can be used as base class by other classes (like CJuiAutoComplete) but cannot be instantiated.

ok. i understand.

but what is the best way to create an inputbox for a simple string then? cjuidialog with a form?

CJuiInputWidget is a base class for other class to extends,it can’t be used like that.as for Inputbox,you can use CActiveForm or CJuiAutoComplete or directly use html <input type=“text” name="" value="" > ::)