I'm trying to get the Yexcel extension installed and keep coming up with the following error:
include(Yexcel.php): failed to open stream: No such file or directory
I have followed the setup instructions (which seem extremely simple -- link to the extension page) and checked into loading extensions from the Yii wiki. Doesn't seem like I've missed anything.
Files for the extension were placed under the extensions directory:
-- extensions (dir)
---- yexcel
------ Classes (dir)
------ Yexcel.php
Here is the components section from my main config:
'components'=>array(
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
),
'yexcel' => array(
'class' => 'ext.yexcel.Yexcel'
),
'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=********',
'emulatePrepare' => true,
'username' => 'root',
'password' => '********',
'charset' => 'utf8',
),
'errorHandler'=>array(
// use 'site/error' action to display errors
'errorAction'=>'site/error',
),
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'error, warning',
),
),
),
),
And here is where the extension is being called (from a controller):
public function actionImport()
{
$file_path = dirname(__FILE__) . '/files/sample.xls';
$data = Yii::app()->yexcel->readActiveSheet($file_path);
$this->render('import',array(
'data'=>$data,
));
}
Any thoughts?
Thanks!

Help















