0
votes

i am new to the Zend Framework 2.Any body can tell me that where i can initialize the tb table in ZF2 model? For example i want to select all the records form the user table in FZ2 model.

Regards, Tauqeer

1

1 Answers

0
votes
     $db = $this->db;
     $select = $this->db->select(false)
               ->from('user');

Try this one

refer this url http://framework.zend.com/manual/1.12/en/zend.db.select.html