3 ms·
I'm sorry I deleted my post, didn't see your reply in time. $this->views[$path](); should not throw an error. What version are you using?
by Udo 14y ago
I'm sorry I deleted my post, didn't see your reply in time.
$this->views[$path]();
should not throw an error. What version are you using?
- TazeTSchnitzel 14y agoPHP 5.4. Let's try that code: Fatal error: Using $this when not in object context in D:\Projects\2012\45blocks\45blocks\src\framework.php on line 19 It's a static class member.
- Udo 14y agoYou're right, I didn't get that it doesn't work in a static context. I stand corrected, that definitely sucks.