Is there a way to execute a SQL String as a query in Zend Framework?
I have a string like that:
$sql = \"SELECT * FROM testTable WHERE myColumn = 5\"
Here is an example for ZF1:
$db =Zend_Db_Table_Abstract::getDefaultAdapter(); $sql = "select * from user" $stmt = $db->query($sql); $users = $stmt->fetchAll();