paragonie / anti-csrf

Full-Featured Anti-CSRF Library
https://paragonie.com/projects
GNU Affero General Public License v3.0
297 stars 52 forks source link

Class not found #33

Open boionfire81-zz opened 5 years ago

boionfire81-zz commented 5 years ago

Class 'ParagonIE\AntiCSRF\AntiCSRF' not found

structure: domain.com/index.php ----> require('myincludes/myautoloader.php'); domain.com/my includes/myautoloader.php domain.com/my includes/ParagonIE/AntiCSRF/AntiCSRF.php domain.com/my includes/ParagonIE/yourautoloader.php

myautoloader.php calls ParagonIE/yourautoloader.php

Which is copy/pasted from here.

boionfire81-zz commented 5 years ago

P.S. I also use your constanttime code as this script seems to require it.

Structure: domain.com/index.php ---->require('myincludes/myautoloader.php'); domain.com/my includes/myautoloader.php ----->require('ParagonIE/yourautoloader.php'); domain.com/my includes/ParagonIE/ConstantTime domain.com/my includes/ParagonIE/ConstantTime/Base32.php etc etc

Kooser06 commented 5 years ago

Please make sure you use the autoloader in the repository. require_once __DIR__ . '/path/to/autoloader/autoload.php';. This is located here https://github.com/paragonie/anti-csrf/blob/master/autoload.php. Also please provide your code.