Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Debug for zend db database

DZone's Guide to

Debug for zend db database

·
Free Resource
   public function __construct()
  {
    $this->db = Zend_Db_Table::getDefaultAdapter();
    $this->db->getProfiler()->setEnabled(TRUE);
  }
  public function __destruct(){
    Zend_Debug::dump($this->db->getProfiler()->getQueryProfiles());
  }
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}