mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-04 10:46:21 +07:00
Class include path is without 'apps/' prefix
This commit is contained in:
@@ -133,7 +133,7 @@ To add a class to the classloader, simply use something like this:
|
||||
|
||||
<?php
|
||||
// loads the class MyClass from the file folder/myclass.php
|
||||
\OC::$CLASSPATH['OCA\YourAppName\MyClass'] = 'apps/yourappname/folder/myclass.php';
|
||||
\OC::$CLASSPATH['OCA\YourAppName\MyClass'] = 'yourappname/folder/myclass.php';
|
||||
?>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user