How to use PHPExcel external library with Yii

Comparing #1 with #2

Revision #2 was created by Antonio Ramirez Antonio Ramirez on Nov 5, 2010, 8:03:06 PM.

Updating misstyping errors

Content

[...]
if ((class_exists($pObjectName)) || (strpos($pObjectName, 'PHPExcel') === False)) {
return false;
}
// this is the code that shows what I am saying
$pObjectFilePath = PHPEXCEL_ROOT.
    str_replace('_',DIRECTORY_SEPARATOR,$pObjectName).'.php';         if ((file_exists($pObjectFilePath) === false)
 
       
|| (is_readable($pObjectFilePath) === false)) { return false;  }
 
}
 
require($pObjectFilePath);
} // function Load()

```

<h2>Solution</h2>
[...]