DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Paulo has posted 1 posts at DZone. View Full User Profile

Debug for zend db database

04.11.2013
| 4537 views |
  • submit to reddit
   public function __construct()
  {
    $this->db = Zend_Db_Table::getDefaultAdapter();
    $this->db->getProfiler()->setEnabled(TRUE);
  }
  public function __destruct(){
    Zend_Debug::dump($this->db->getProfiler()->getQueryProfiles());
  }