(11-22-2017, 05:40 AM)rolf Wrote: (11-22-2017, 04:31 AM)Narf Wrote: (11-21-2017, 11:51 AM)rolf Wrote: (11-21-2017, 10:20 AM)Narf Wrote: 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.
You said two things, of which only would be possible according to you. So of course I'm referring to what you said "It is possible to detect where the call originated from." Because I don't see how to easily make a distinction in between calls originating from the view and from the controller.
However, I've decided to continue with Twig, as this seems to work fine for me. The only disadvantage is the need to update over 200 different pages.
Sorry, I'm way too used to people ignoring my previous comments.
https://secure.php.net/debug_backtrace