Imperavi Widget Doesn't Return Data To $_Post

Hi,

I’m struggling a strange problem, namely, Imperavi widget doesn’t return data to $_POST table.

Code on form is the following:


$this->widget('ImperaviRedactorWidget', array(

    'model' => $modelUserNotes,

    'attribute' => 'note',

       

    'options' => array(

        'lang' => 'pl',        

        'iframe' => false,        

        'buttons' =>array('bold', 'italic', 'underline', 'deleted', '|',

                          'unorderedlist', 'orderedlist', 'outdent', 'indent', '|',

                          //'image', 'video', 'file', 

                          'table', 'link', '|',

                          'fontcolor', 'backcolor', '|', 'alignment', '|', 'horizontalrule'),        

        //'css' => 'wym.css',

            ),

    ));

Nothing special. Then in controller I got error on this line:


if(strlen($_POST['UserNotes']['note'])>0)

It just doesn’t exist in $_POST table, this one particular field, rest of model is fine.

I made sure there isn’t a mispelling error or anything similar.

Any idea?

Thanks,

BarBQ

Ok, I found it - the field was out of form.

Case closed.