PHP Classes

Geting fatal error

Recommend this page to a friend!

      Simple Form Maker  >  All threads  >  Geting fatal error  >  (Un) Subscribe thread alerts  
Subject:Geting fatal error
Summary:Geting fatal error
Messages:3
Author:mananspatel
Date:2015-03-25 04:22:56
 

  1. Geting fatal error   Reply   Report abuse  
Picture of mananspatel mananspatel - 2015-03-25 04:22:56
Hello

I have download your code (Simple Form Maker) and after running index.php file I am getting bellow error:

Fatal error: Call to undefined method FormMaker::_instance() in M:\XAMPP\htdocs\simple-form-maker-2015-02-25\index.php on line 25

Can you please guide me how to fix.

Thanks.

  2. Re: Geting fatal error   Reply   Report abuse  
Picture of Ovidiu Bokar Ovidiu Bokar - 2015-03-25 09:34:26 - In reply to message 1 from mananspatel
Before going into deep, let's check out the basics :)

Have you included my script in your file? (i.e.: include 'FormMaker.php'; )
Also, can you show me the snipped code you tried to render? It's easier to debug while I can see what you tried to do.


Thank you!

  3. Re: Geting fatal error   Reply   Report abuse  
Picture of Ovidiu Bokar Ovidiu Bokar - 2015-03-25 11:28:48 - In reply to message 1 from mananspatel
One more thing, can you replace _instance with getInstance(). I think the example I've provided is wrong. I will update it!