Resend as seems to have been blocked but appears in Nabble so apologies if
it's duplicated. - Simon
---
Hi, I am just working with Zend DB Table and have stumbled across custom Row
classes. I thought these were the answer to my problem. How to have generic
helper methods... i.e an image table has directory, file, extension. A
helper method would be getPath() and it would return those three properties
combined.
Simple! However with rows it's fine until I join tables and then need a
composite row i.e. a product has an image... I need the product helpers and
the image helpers... Rows no longer work as I need two and there is by
nature only one row! - Extending isn't really an option as a product doesn't
always have an image (in overview the images are handled seperately) etc.
etc.
So my question is this, how should I create helper methods... View helpers
was my next obvious answer but they need resetting on every loop with the
new image row... where as rows would already know. I'm also not too keen on
tons of view helper classes, although one helper per object would be ok.
I'm simply confused with my own ideas so a pointer at everyones preffered
method would be nice!
Thanks
Simon
-----
Simon
http://www.ajb007.co.uk/
--
View this message in context: http://www.nabble.com/Zend-Row---Data-Related-Helper-Methods---7A2-99B-tp18850634p18850634.html
Sent from the Zend DB mailing list archive at Nabble.com.
没有评论:
发表评论