Yii Custom Widget Simple ExampleLast updated:
Simplest possible way to get a Custom Widget going:
Then, in a view, you can instantiate it like this: the
run() methods get called automatically.
<?php $this->widget('path.to.MyWidget'); ?>