I need to refer to a controller method from a cache observer, How can I make it?
A:
an observer binds to models, at least you can write some custom code in lib, then reuse it in obsever. by the way it may depend from what you're doing
apeacox
2010-08-25 14:31:11
A:
If you need to do it, then something goes wrong with architecture. It breaks MVC pattern because observers bind to models, and we should call model methods from controller and not vice-versa.
lest
2010-08-25 20:37:04