Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: Class 'JsonSchema\Constraints\Constraint' not found in Undefined.php #7

Closed
roydekleijn opened this issue Jan 28, 2012 · 6 comments

Comments

@roydekleijn
Copy link

it's already fixed... a missing bootloader was the cause...
Sorry

@digitalkaoz
Copy link
Contributor

are you using php 5.3? and what is require_once('Constraint.php');? you should use the autoloader...

@roydekleijn
Copy link
Author

ok thanks!
Is it better to read the Schema from an .json file or an internal variable ?

@justinrainbow
Copy link
Collaborator

Either way is fine. Just depends on how you want to organize your code.

@Asmabulb
Copy link

Hi,

I 've just installed this package

I'm having the same error in the test example given :

PHP Fatal error: Class 'JsonSchema\Validator' not found in

I'm using PHP 5.4.9

Thanks

@justinrainbow
Copy link
Collaborator

Did you use Composer for the installation? All of the JsonSchema classes are meant to be loaded via an autoloader, not directly with a require or include statement.

@Asmabulb
Copy link

Hi, thanks for the quick response,

I didnt use composer, i did just git

What should i do then ?

Sent from my iPad

On 28 Nov 2012, at 16:44, Justin Rainbow notifications@github.com wrote:

Did you use Composer for the installation? All of the JsonSchema classes are meant to be loaded via an autoloader, not directly with a require or include statement.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants