PHP configuration on XAMPP

General discussion on PHP
Post Reply
sneh401
Posts: 1
Joined: Tue Aug 11, 2015 10:42 am

PHP configuration on XAMPP

Post by sneh401 » Tue Aug 11, 2015 10:46 am

Hi,
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.


Thanks

Post Reply