3 ms·
Parse error: syntax error, unexpected '[' in D:\Projects\2012\45blocks\45blocks\src\framework.php on line 18 No it doesn't.
by TazeTSchnitzel 14y ago
Parse error: syntax error, unexpected '[' in D:\Projects\2012\45blocks\45blocks\src\framework.php on line 18
No it doesn't.
- Udo 14y agoI'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.