added routes for normal apps

This commit is contained in:
Bernhard Posselt 2013-03-13 18:10:08 +01:00
parent a23f822753
commit ceb85d5949
4 changed files with 20 additions and 12 deletions

View File

@ -8,6 +8,7 @@ App Developement (ownCloud App API)
tutorial
info
classloader
routes
schema
database
templates

View 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`

View File

@ -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:

View File

@ -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
~~~~~~~~