I started following the gateway() approach then read the next posts.

I'm thinking about making a model class and extending my models from that.

The model class will have all the db_table methods like insert, update etc.

My models will then all extend from the model class so that they have all
the original table methods available. In the constructor or some init method
or something they will set the corresponding db_table object for use.


On 7/12/07, Ian Warner <[EMAIL PROTECTED]> wrote:

I create my models, and then spit the data to a View Helper called Table
Render

This table render utilises PEAR Structures so I can expose the data in
many different ways, including an HTML table, CSV, XML, Excel, PDF etc.

Just another abstraction layer to help with reporting, it also does
paging, filtering and header ordering

Would be nice if Zend could create somthing similar to this that binds
in with the framework

Ian


Brian Caspe wrote:
> I've had a question about this too, though specifically it doesn't
> really deal with pulling one "book". I was wondering what solutions
> people have for wanting to pull a set of books (to use the earlier
> example) from a category (say, biography) and then limit the list (for
> paging).
>
> I had guessed that the solution would be to get the relevant category
> row, then pull all the books for that category, (findManyToManyRowset)
> but there doesn't seem to be a clean way to limit the books. I'm most
> likely missing something.
>
> brian
>

Reply via email to