[SOLVED] Update to 1.0.4 broke my app

I just updated to 1.0.4 & now I get this …  :(

PHP Error


Object of class ETinyMce could not be converted to string

Source File




00043: <tr>

00044: <td class="label"><?php echo CHtml::activeLabel($product,'title'); ?></td>

00045: <td class="data">

00046: <?php echo $this->widget('application.extensions.tinymce.ETinyMce', array(

00047: 'name'=>'Product[title]',

00048: 'value'=>$product->title,

00049: 'height'=>'50px',

00050: 'width'=>'600px',

00051: 'bodyId'=>'main',

00052: 'stylesheet'=>Yii::app()->theme->baseUrl.'/css/main.css'

00053: )); ?>

Any ideas ??

Remove "echo" from

echo $this->widget


That did it - thanks

No problem.

What i want to know is how it worked in the first place - you were echo-ing the widget instance object all along.  ???

Because $this->widget() returns CWidget only from 1.0.4.

C.f. http://code.google.c…ce/detail?r=904

Ah i see!

Because widgets render a view or echo their output directly, i never noticed at all.

$this->widget must have used to return null. Returning the widget object is much more correct.

FYI, I have learned the usage of the calling widget in the blog demo as below, from line 20 to 26.