please change the value of ‘security. cipher seed ‘ in app/config/core.php problem in Cakephp

Just follow bellow information – Edit yourInstallation/app/config/core.php Search for Security.salt and change some random characters (this is so your application  doesn’t have the same security seed as a billion other installations, which would be a serious security loophole. Do the same with Security.cipherSeed but use only numbers save core.php Hope it will work

Continue Reading

CakePHP – Export data to a .html file

CakePHP – Export data to a .html file header(‘Content-Type: text/html; charset=utf-8’); header(‘Content-Type: application/force-download’); header(‘Content-Type: application/octet-stream’); header(‘Content-Type: application/download’); header(  ‘Content-disposition: attachment; filename=”<your file name here>.html”‘);   Hope it will work, Have a nice day!.

Continue Reading

CakePHP – Export data to a .docx file

CakePHP – Export data to a .docx file Very simple. Just copy below code and paste. header(“Expires: Mon, 26 Jul 2020 05:00:00 GMT”); header(“Last-Modified: ” . gmdate(“D, d M Y H:i:s”) . ” GMT”); header(“Cache-Control: no-store, no-cache, must-revalidate”); header(“Cache-Control: post-check=0, pre-check=0”, false); header(“Pragma: no-cache”); header(“Content-Type: application/msword; charset=ISO-8859-1”); header(“Content-Disposition: attachment; filename=\””.<your file name>.”.doc”); echo “<html><head><title> Cakephp  docx file</title><body>”; echo “<your html …

Continue Reading