-
-
Notifications
You must be signed in to change notification settings - Fork 316
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
Add an Authentication Class from Custom Folder #21
Comments
Loading php class files from Custom FoldersSolution for this problem is quite simple and nothing specific to Restler framework! Let me explain
As you can see above it only takes the name of the class and it does not care where the php file is located. You can do one the following to make sure your class files are found
Hope this helps, and have fun with Restler :) Also tell us what you want to see in Rester 3.0! |
Hi, Thank you. I can use one of the work arounds to solve the auth class problem. For version 3.0, would it possible to have the following:
What are your thoughts on these two? Thanks, Kit |
Hi Kit, I already started a new 'issue' for new version discussion to avoid having everything scattered. Cheers. |
Hi @KitCarrau, It is not a work around, that is how we should load classes in PHP ;) Design goal for restler is to keep it simple so that any one who knows PHP and OOP should be able to use Restler by thinking how they would do something in plain PHP. Ideally I should come up with an example Will that help? Versioning Yes, we are already woking on it :) |
How do you add an authentication class that is not in the root directory for your app using
addAuthenticationClass
?addAuthenticationClass
only works when my auth class is in the root directory.I have tried adding the optional parameter of
$base_path
but it has not worked.The text was updated successfully, but these errors were encountered: