Hi all, With ownCloud 8 we will stop supporting routing guessing based on the file location. For those that are not aware what routing is, basically if you open “index.php/apps/files/ajax/foo.php” ownCloud will automatically serve the file “foo.php” from “files/ajax/“.
This change means that you have to explicitly register routable files in
“appinfo/routes.php”. In case you're using the AppFramework you are most likely
already doing this and no further modifications are required. If you don’t use
the AppFramework, a few minor modifications to your application needs to be
done.
For example, if you want to have the file "ajax/foo.php" from your "files"
application reachable via "index.php/apps/files/ajax/foo.php" you need to add
the following line to your "appinfo/routes.php":
$this->create('files_ajax_foo', 'ajax/foo.php')
->actionInclude('files/ajax/foo.php’);
You can see a few real life examples on this Pull Request:
https://github.com/owncloud/core/pull/10522
This change will be backwards compatible. - If you have any question feel free
to ask!
Thanks!
Lukas
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Devel mailing list [email protected] http://mailman.owncloud.org/mailman/listinfo/devel
