Answer the question
In order to leave comments, you need to log in
Zend Framework 1. How to query multiple database tables?
We were given a small task on the first zend framework, I didn’t have much to do with it, but I need to display data from three tables at once without links, in one request.
As far as I understand, in this framework a model class is created, where the name of the table with which this model works is indicated, but what should be done if you need to work with several tables?
Here is a small example of how I understood the work with the database.
class Test_Tbl extends Zend_Db_Table_Abstract {
protected $_name = 'test_table';
public function select() {
//какой-то код
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question