Still learning magento coding. I wonder is there a way I can print out all the values in the collections on any page I load on magento? This would be assuming I don’t know the names of the collections being used.
This would be very helpful if it is possible.
First, a word of warning – if you are var_dump’ing collections, let alone every collection loaded for a given request, then you are most likely going to run in to problems – collections contain huge amounts of data.
What is it exactly that you require from each collection that you would need to do this?
Anyway, the only way to get this data that comes to mind would be to use an observer subscribed to:
So as a head start…
Your config.xml would look similar to this…
Your observer would look like this…