buenas, estoy necesitando dentro de un modulo crear un widget
El modulo que cree lo llame "box":
Cree dentro de la carpeta componentes el siguiente widget:
class boxWidget extends CWidget
{
public function int() {
echo "init: Box";
}
public function run() {
echo "run: Box";
$this->render('boxView');
}
}
Y dentro de la carpeta Views el archivo: boxView.php con el siguiente codigo:
<div style="color:red">EJEMPLO DE WIDGETS DENTRO DE UN MODULO</div>
Ahora bien, dentro de la vista del modulo tengo lo siguiente:
<?php
$this->breadcrumbs=array(
$this->module->id,
);
?>
<h1><?php echo $this->uniqueId . '/' . $this->action->id; ?></h1>
<p>
This is the view content for action "<?php echo $this->action->id; ?>".
The action belongs to the controller "<?php echo get_class($this); ?>"
in the "<?php echo $this->module->id; ?>" module.
</p>
<div id="widget">
<?php $this->widget('boxWidget');?>
</div>
<p>
You may customize this page by editing <tt><?php echo __FILE__; ?></tt>
</p>
Se entiende lo que quiero hacer?, o sea necesitaria que el widget me muestre el contenido, pero me esta tirando un error, me parece que lo estoy planteando mal.