Commits

yybalam committed 43cdec9

Fix the code Highlighted

  • Participants
  • Parent commits 9a0ee40

Comments (0)

Files changed (2)

 * Edite el archivo de configuración `main.php` para agregar la clase PHPExcel:
 
 ~~~
+[php]
 // autoloading model and component classes
 'import'=>array(
     ...
 Simplemente crea una instancia de PHPExcel
 
 ~~~
+[php]
 $objPHPExcel = new PHPExcel();
 ~~~
 
 * Edit `PHPExcel.php` file and comment the autoload inclusion:
 
 ~~~
+[php]
 /** PHPExcel root directory */
 /*if (!defined('PHPEXCEL_ROOT')) {
     define('PHPEXCEL_ROOT', dirname(__FILE__) . '/');
 * Edit `index.php` file and register the `YiiExcel` autoloader:
 
 ~~~
+[php]
 require_once($yii);
 //do not run app before register YiiExcel autoload
 $app = Yii::createWebApplication($config);
 * Edit `main.php` config file to import PHPExcel main class:
 
 ~~~
+[php]
 // autoloading model and component classes
 'import'=>array(
     ...
 Just create a PHPExcel instance:
 
 ~~~
-:::php
+[php]
 $objPHPExcel = new PHPExcel();
 ~~~