markvr
(Markvanrossum)
1
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?!
rootbear
(Alex Xm)
2
-
if ur server is linux, check spelling for case-sensitive;
-
try
<?php
Yii::import('app.modules.hybridauth.widgets.*');
$this->widget('renderProviders');
?>
markvr
(Markvanrossum)
3
I’d forgotton to rename the class…
I had
class MyWidget extends CWidget
rather than
class renderProviders extends CWidget
doh!