Call to a member function on a non-object

The problem isn’t with the $name variable but rather with the $_engine variable. It’s currently empty. You need to verify that the path specification to Smarty.class.php is correct. You might try this to begin your debugging: $this->_engine = new Smarty(); print_r($this->_engine); If it turns out that $_engine is correct at that stage then verify that … Read more

how to create virtual host on XAMPP [duplicate]

Step 1) C:\WINDOWS\system32\drivers\etc\ Open the “hosts” file : 127.0.0.1 localhost 127.0.0.1 test.com 127.0.0.1 example.com Step 2) xampp\apache\conf\extra\httpd-vhosts.conf <VirtualHost *:80> DocumentRoot C:/xampp/htdocs/test/ ServerName www.test.com </VirtualHost> <VirtualHost *:80> DocumentRoot C:/xampp/htdocs/example/ ServerName www.example.com </VirtualHost> Step 3) C:\xampp\apache\conf\httpd.conf. Scroll down to the Supplemental configuration section at the end, and locate the following section (around line 500), Remove the # … Read more