Commits

K'iin Balam  committed a4c011f

[Fix] Space on readme files.

  • Participants
  • Parent commits a32f081

Comments (0)

Files changed (2)

 4. Decomprima PHPExcel y copie el contenido del directorio Classes destro de del directorio phpexcel recién creado.
 5. Abra el archivo PHPExcel.php y comente la inlución del autocargador:
 
-<pre>
-/** PHPExcel root directory */
-/*if (!defined('PHPEXCEL_ROOT')) {
-	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/');
-	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
-}*/
-</pre>
+
+	/** PHPExcel root directory */
+	/*if (!defined('PHPEXCEL_ROOT')) {
+		define('PHPEXCEL_ROOT', dirname(__FILE__) . '/');
+		require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
+	}*/
+
 
 6. Edite el archivo index.php y registre el autocargador de YiiExcel:
 
-<pre>
-require_once($yii);
-//Ne ejecutar la aplicación antes de registrar el autocargador
-$app = Yii::createWebApplication($config);
 
-Yii::import('ext.yiiexcel.YiiExcel', true);
-Yii::registerAutoloader(array('YiiExcel', 'autoload'), true);
+	require_once($yii);
+	//Ne ejecutar la aplicación antes de registrar el autocargador
+	$app = Yii::createWebApplication($config);
+	
+	Yii::import('ext.yiiexcel.YiiExcel', true);
+	Yii::registerAutoloader(array('YiiExcel', 'autoload'), true);
+	
+	// Optional:
+	//	As we always try to run the autoloader before anything else, we can use it to do a few
+	//		simple checks and initialisations
+	PHPExcel_Shared_ZipStreamWrapper::register();
+	
+	if (ini_get('mbstring.func_overload') & 2) {
+	    throw new Exception('Multibyte function overloading in PHP must be disabled for string functions (2).');
+	}
+	PHPExcel_Shared_String::buildCharacterSets();
+	
+	//Ahora si se puede correr la aplicación
+	$app->run();
 
-// Optional:
-//	As we always try to run the autoloader before anything else, we can use it to do a few
-//		simple checks and initialisations
-PHPExcel_Shared_ZipStreamWrapper::register();
-
-if (ini_get('mbstring.func_overload') & 2) {
-    throw new Exception('Multibyte function overloading in PHP must be disabled for string functions (2).');
-}
-PHPExcel_Shared_String::buildCharacterSets();
-
-//Ahora si se puede correr la aplicación
-$app->run();
-</pre>
 
 ## Uso
 
 Simplemente crea una instancia de PHPExcel
 
-<pre>
-$objPHPExcel = new PHPExcel();
-</pre>
+
+	$objPHPExcel = new PHPExcel();
+
 
 Consulta el archivo SiteController.php de ejemplo que está en el directorio example.
 4. Unzip PHPExcel and copy Classes directory content to protected/extensions/phpexcel.
 5. Edit PHPExcel.php file and comment the autoloadei inclusion:
 
-<pre>
-/** PHPExcel root directory */
-/*if (!defined('PHPEXCEL_ROOT')) {
-	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/');
-	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
-}*/
-</pre>
+
+	/** PHPExcel root directory */
+	/*if (!defined('PHPEXCEL_ROOT')) {
+		define('PHPEXCEL_ROOT', dirname(__FILE__) . '/');
+		require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
+	}*/
+
 
 6. Edit index.php file and register the YiiExcel autoloader:
 
-<pre>
-require_once($yii);
-//do not run app before register YiiExcel autoload
-$app = Yii::createWebApplication($config);
 
-Yii::import('ext.yiiexcel.YiiExcel', true);
-Yii::registerAutoloader(array('YiiExcel', 'autoload'), true);
+	require_once($yii);
+	//do not run app before register YiiExcel autoload
+	$app = Yii::createWebApplication($config);
+	
+	Yii::import('ext.yiiexcel.YiiExcel', true);
+	Yii::registerAutoloader(array('YiiExcel', 'autoload'), true);
+	
+	// Optional:
+	//	As we always try to run the autoloader before anything else, we can use it to do a few
+	//		simple checks and initialisations
+	PHPExcel_Shared_ZipStreamWrapper::register();
+	
+	if (ini_get('mbstring.func_overload') & 2) {
+	    throw new Exception('Multibyte function overloading in PHP must be disabled for string functions (2).');
+	}
+	PHPExcel_Shared_String::buildCharacterSets();
+	
+	//Now you can run application
+	$app->run();
 
-// Optional:
-//	As we always try to run the autoloader before anything else, we can use it to do a few
-//		simple checks and initialisations
-PHPExcel_Shared_ZipStreamWrapper::register();
-
-if (ini_get('mbstring.func_overload') & 2) {
-    throw new Exception('Multibyte function overloading in PHP must be disabled for string functions (2).');
-}
-PHPExcel_Shared_String::buildCharacterSets();
-
-//Now you can run application
-$app->run();
-</pre>
 
 ## Usage
 
 Just create a PHPExcel instance:
 
-<pre>
-$objPHPExcel = new PHPExcel();
-</pre>
+
+	$objPHPExcel = new PHPExcel();
+
 
 Read the SiteController.php example file located inside example directory.