adamwathan/form

Script not wokring

Closed this issue · 1 comments

I am using plain php to work in this

first i created a file in the name of form.php and included the below file

require('AdamWathan/Form/FormBuilder.php');

below require i added the below code
$builder = new AdamWathan\Form\FormBuilder;

and i got the error as Fatal error: Class 'AdamWathan\Form\Elements\FormOpen' not found

Hey man, you should use Composer to install the package and then include the autoload file Composer creates for you, otherwise the classes will not be loaded.

There's a good guide on getting started with Composer here:

https://getcomposer.org/doc/00-intro.md