PHP/CakePHP Useful Setting

PHP/CakePHP Useful Setting


Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes)
ini_set('memory_limit', '-1')

Cakephp 1.2.x/1.3.x

Set debug Mode on controller
Configure::write('debug', 2)

User Third Party PHP file in cake php
Step1:Copy File In location : App>>vendors>>FILENAME.php
Step2: Use Following Code in Controller
App::import('Vendor', 'FILENAME');

Be the first to comment “PHP/CakePHP Useful Setting”

Time limit is exhausted. Please reload CAPTCHA.