views:

23

answers:

2

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
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