Books has the following fields
- book_id
- book_name
- book_auther
- book_pub_date
category table has
- category_id
- category_name
placement table has
- placement_id
- placement_category_id(FK)
- placement_book_id(FK)
Now we want to use pagination in index controller to select books with specific category ?
all tables are in one database
Note: I have separated model for each table and all tables are related each other with $_referenceMap
I use $adapter = new Zend_Paginator_Adapter_DbTableSelect($select);
the question is : how to make $select ?