Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
systems:cakephp:cakephp_setup_and_configuration [2015/11/02 17:22]
smayr [SVGGraph]
systems:cakephp:cakephp_setup_and_configuration [2016/05/16 14:18] (current)
smayr [Updating Model]
Line 1280: Line 1280:
   * Download a copy of PhpExcel helper and component for CakePHP 2.x: [[https://github.com/segy/PhpExcel]].   * Download a copy of PhpExcel helper and component for CakePHP 2.x: [[https://github.com/segy/PhpExcel]].
   * Copy files to respective folders in CakePHP app.   * Copy files to respective folders in CakePHP app.
 +  * Get PHPExcel updates from [[https://github.com/PHPOffice/PHPExcel]], and update helper files in ''[app]/vendor/PhpExcel''.
 +  * See documentation:
 +    * [[https://github.com/segy/PhpExcel/blob/master/View/Helper/PhpExcelHelper.php|PhpExcelHelper]]
 +    * [[http://openxmldeveloper.org/blog/b/openxmldeveloper/archive/2009/05/07/4606.aspx|Use PHP to create Open XML Spreadsheet reports]].
  
 In PhpExcel helper, edit function ''createdWorksheet()'' to look like this: In PhpExcel helper, edit function ''createdWorksheet()'' to look like this:
Line 1355: Line 1359:
 ob_end_clean();  // remove all output (very important, otherwise data is garbage) ob_end_clean();  // remove all output (very important, otherwise data is garbage)
 this->PhpExcel->output('MyExcelFile.xlsx'); this->PhpExcel->output('MyExcelFile.xlsx');
 +</code>
 +
 +== Delete Cached Models ==
 +
 +After updating a model, clear the cache to see the changes on the site. 
 +<code>
 +$ rm -f /app/tmp/cache/models/cake_model_*
 +$ rm -f /app/tmp/cache/persistent/cake_core_*
 </code> </code>