zend framework - how to create a Zend_Db_Table_Select through a string query php -
i have been taking look, if there way create zend_db_table_select or zend_db_select instance literal sql query. mean, i've got complex query , want through query create object of one. have been reading docs classes , didn't find anything. guess not possible.
do know it?
thank much.
i think best bet write in model:
public function customquery ($table, $id) { return $this ->getdefaultadapter() ->query("select * ? id = ?", array($table,$id) ) ->fetchall() ; }
and 1 more link useful you