Widget autoloading problems

I have a widget at protected\modules\hybridauth\widgets\renderProviders.php

But when I try to use this:

<?php $this->widget('application.modules.hybridauth.widgets.renderProviders'); ?>

I get:

include(renderProviders.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory

Have I missed something?!

  1. if ur server is linux, check spelling for case-sensitive;

  2. try





I’d forgotton to rename the class…

I had

class MyWidget extends CWidget

rather than

 class renderProviders extends CWidget