BeginWidget

Hi,

I just used beginWidget, my problem is how to recuperate the properties in my class?

Thank you.

This property should be public proteries in the widget class.

For example:




<?php $this->beginWidget('myWidget', array('prop1'=>'value1','prop2'=>'value2' ))?>



Should correspond to:


<?php

class MyWidget extends CWidget

{

   public $prop1;

   public $prop2;


   public function run()

   {

      echo $this->prop1;

   }

}


?>

Thank you zaccaria :)