September 24, 2009

[SOLVED]Disable Debug Output for Ajax in CakePHP


<?php

class AppController extends Controller {

var $components = array('RequestHandler');

var $helpers = array('Html','Form','Ajax');

function beforeFilter() {

if ( $this->RequestHandler->isAjax() ) {

Configure::write('debug',0);

}

}

}

?>

otaqui.com

No comments:

Post a Comment