enable_debug()

Note: this method is going to be deprecated in the future. Please use DEBUG global constant instead.

  • Parameter(s):
    • $debug: boolean value indicating whether to display debug message
  • Description:
    • Enable debug displays phpGrid object as well as the current PHP session information. In addition, XMLHttpRequest, or AJAX, response data is displayed that occurs during CRUD operations. This is helpful debugging information can be used during development.
    • It also display the phpGrid version number and associated javascript libraries used.
  • Remark:
    • Make sure this method is not called, or the $debug parameter is set to false, when deployed in production.
  • Example:
1
$dg -> enable_debug(true);