I was setting up Zend Framework on my localhost, that is XAMPP.
And I created a project in the htdocs folder of xampp.
So there are pages which include some .phtml files from an external folder. But when I try to include these files, the browser gives me an error saying
Fatal error: Using $this when not in object context in C:\xampptwo\htdocs\testproject\application\views\scripts\index\common_css_js.phtml on line 14.
I am not able to figure out why this error occurs.
Any assistance on this topic would be very helpful.
Please share your valuable knowledge about the same.
General discussion on PHP
1 post • Page 1 of 1