(11-21-2017, 11:51 AM)rolf Wrote: (11-21-2017, 10:20 AM)Narf Wrote: (11-21-2017, 09:36 AM)rolf Wrote: (11-21-2017, 03:00 AM)Narf Wrote: Not possible.
I agree. Even when creating an extension forĀ get_instance(), it's still not possible to determine whether a call was being made from the view or from the controller.
It is possible to detect where the call originated from. You can't make an extension of get_instance().
So, how would you do this?
Do what? As I already said, it's impossible to forbid get_instance() calls, in any context.