Using Var In Widget

Hi there,

I’m passing a variable to a widget in the widget call like so:


<?php $this->widget('application.components.MyWidgetName', array('varName'=>'varValue')) ?>

My question is how do I reference the variable in my MyWidgetName.php file?

Any help will be greatly appreciated.

Thanks in advance

OK so you can reference a variable in a widget using $this->vaName

Hi please see it

i hope it’s some help.