Which is the best way to generate excel output in PHP? [closed]

There is some class that generates PHP Excel files (real excel files, not that .csv thing). I use (DEPRICATED) See edit 2: https://github.com/PHPOffice/PHPExcel BUT: I have had a problem when trying to read these generated excel files with the java excel READER, so there might be bugs in this PHP script. EDIT: Nice one: http://www.phpclasses.org/package/2037-PHP-Generate-spreadsheet-files-Excel-xls-XML-format.html … Read more

CakePHP 2.0 – How to make custom error pages?

Try this: /app/Config/core.php Exception render need to set as an AppExceptionRender. Example: Configure::write(‘Exception’, array( ‘handler’ => ‘ErrorHandler::handleException’, ‘renderer’ => ‘AppExceptionRenderer’, ‘log’ => true )); /app/Controller/ErrorsController.php class ErrorsController extends AppController { public $name=”Errors”; public function beforeFilter() { parent::beforeFilter(); $this->Auth->allow(‘error404’); } public function error404() { //$this->layout=”default”; } } /app/Lib/Error/AppExceptionRenderer.php App::uses(‘ExceptionRenderer’, ‘Error’); class AppExceptionRenderer extends ExceptionRenderer { public … Read more