GithubHelp home page GithubHelp logo

Comments (5)

MichelAraujo avatar MichelAraujo commented on May 8, 2024

You can download the repository in the GitHub, install via Composer or PEAR.

PEAR and Composer

You can using the classes normally just load in the application via autoload for example.

from validation.

liaolliso2012 avatar liaolliso2012 commented on May 8, 2024

Hi Michel, I use the method of pear to install the Validation and Loader and it works well, but if i just copy out the classes in Respect/Validation to work with my code, it could not work. Error: Class AllOf not found. Could you give me an example of using Validation without pear install which means i just download the library her, untar it and include the source file in my code. Thanks for your help and quick reply.

from validation.

alganet avatar alganet commented on May 8, 2024

Respect\Validation works with autoloading. Respect\Loader is a library for that, autoloading classes. You can copy files from both Validation and Loader and then run this lines in your app to enable autoload:

set_include_path('/full/path/to/classes' . PATH_SEPARATOR . get_include_path());
spl_autoload_register(include 'Respect/Loader.php');

In the folder '/full/path/to/classes' you must have a folder 'Respect', inside it a file 'Loader.php' and a folder 'Validation' with these contents inside: https://github.com/Respect/Validation/tree/develop/library/Respect/Validation

from validation.

liaolliso2012 avatar liaolliso2012 commented on May 8, 2024

yes, it worked. i think the reason why it didn't work before is lacking of autoload. Thank you for the help, alganet.

from validation.

alganet avatar alganet commented on May 8, 2024

Awesome! Let us know if we can help you further in anything =D

from validation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.