mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
added routes for normal apps
This commit is contained in:
parent
a23f822753
commit
ceb85d5949
@ -8,6 +8,7 @@ App Developement (ownCloud App API)
|
||||
tutorial
|
||||
info
|
||||
classloader
|
||||
routes
|
||||
schema
|
||||
database
|
||||
templates
|
||||
|
||||
12
developer_manual/app/app/routes.rst
Normal file
12
developer_manual/app/app/routes.rst
Normal file
@ -0,0 +1,12 @@
|
||||
Routes
|
||||
======
|
||||
|
||||
.. sectionauthor:: Bernhard Posselt <nukeawhale@gmail.com>
|
||||
|
||||
PHP usually treats the URL like a filepath. This is easy for beginners but gets more complicated if a good architecture is required. For instance if an URL should call a certain function/method or if values should be extracted from the URL.
|
||||
|
||||
Routing connects your URLs with your controller methods and allows you to create constant and nice URLs. Its also easy to extract values from the URLs.
|
||||
|
||||
ownCloud uses `Symphony Routing <http://symfony.com/doc/2.0/book/routing.html>`_
|
||||
|
||||
Routes are declared in :file:`appinfo/routes.php`
|
||||
@ -1,15 +1,4 @@
|
||||
Routes
|
||||
======
|
||||
|
||||
.. sectionauthor:: Bernhard Posselt <nukeawhale@gmail.com>
|
||||
|
||||
PHP usually treats the URL like a filepath. This is easy for beginners but gets more complicated if a good architecture is required. For instance if an URL should call a certain function/method or if values should be extracted from the URL.
|
||||
|
||||
Routing connects your URLs with your controller methods and allows you to create constant and nice URLs. Its also easy to extract values from the URLs.
|
||||
|
||||
ownCloud uses `Symphony Routing <http://symfony.com/doc/2.0/book/routing.html>`_
|
||||
|
||||
Routes are declared in :file:`appinfo/routes.php`
|
||||
.. include:: ../app/routes.rst
|
||||
|
||||
A simple route would look like this:
|
||||
|
||||
|
||||
@ -34,6 +34,12 @@ You can choose between the traditional and MVC style (App Framework) approach. T
|
||||
|
||||
General
|
||||
~~~~~~~
|
||||
Inner parts of an app
|
||||
|
||||
* :doc:`app/classloader`
|
||||
* :doc:`app/routes`
|
||||
* :doc:`app/info`
|
||||
* :doc:`general/debugging`
|
||||
|
||||
Database
|
||||
~~~~~~~~
|
||||
|
||||
Loading…
Reference in New Issue
Block a user