CJuiDialog and HTML content doesn't work

If I echo plain text it works well:





		$this->beginWidget('zii.widgets.jui.CJuiDialog', array(

			'id'=>'mydialog-'.$m->id,

			// additional javascript options for the dialog plugin

			'options'=>array(

				'title'=>'Match Informations - Match ID #'.$m->id,

				'autoOpen'=>false,

				'modal'=>true,		

			),

		));

		

		echo 'dialog content here ' . $m->id;

		

		$this->endWidget('zii.widgets.jui.CJuiDialog');



If I echo something like:


$this->beginWidget('zii.widgets.jui.CJuiDialog', array(

            'id'=>'mydialog-'.$m->id,

            // additional javascript options for the dialog plugin

            'options'=>array(

                'title'=>'Match Informations - Match ID #'.$m->id,

                'autoOpen'=>false,

                'modal'=>true,        

            ),

        ));

        

        echo $this->renderPartial('_dialog', array('model'=>$model));

        

        $this->endWidget('zii.widgets.jui.CJuiDialog');

It doesn’t work at all, something have already notices an error like mine?

Remove "echo" or set third parameter to true.

/Tommy

I just tried but it’s the same results :(, but I’ve no time to look for the problem :) I will back home tonight TT

I think I would try this next




$partial = $this->renderPartial(..., ..., true);


$this->beginWidget('zii.widgets.jui.CJuiDialog', ...)

  ...        

  echo $partial;

  ...

$this->endWidget('zii.widgets.jui.CJuiDialog');



/Tommy

nothing changes…

I think that the real problem is about some html errors ( no tag closed ) in the _dialog file