Posted By

staar2 on 06/16/09


Tagged


Versions (?)

ZF retreive db connection in controller


 / Published in: PHP
 

  1. $db = Zend_Db_Table::getDefaultAdapter();
  2. $db->getConnection();
  3.  
  4. Zend_Debug::dump($db->fetchAll("SELECT * FROM users"));

Report this snippet  

You need to login to post a comment.