From ceb85d59494989214b3c982de2cfbebe964b9a8a Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 13 Mar 2013 18:10:08 +0100 Subject: [PATCH] added routes for normal apps --- developer_manual/app/app/index.rst | 1 + developer_manual/app/app/routes.rst | 12 ++++++++++++ developer_manual/app/appframework/routes.rst | 13 +------------ developer_manual/app/index.rst | 6 ++++++ 4 files changed, 20 insertions(+), 12 deletions(-) create mode 100644 developer_manual/app/app/routes.rst diff --git a/developer_manual/app/app/index.rst b/developer_manual/app/app/index.rst index 3b0aaa177..6140001a0 100644 --- a/developer_manual/app/app/index.rst +++ b/developer_manual/app/app/index.rst @@ -8,6 +8,7 @@ App Developement (ownCloud App API) tutorial info classloader + routes schema database templates diff --git a/developer_manual/app/app/routes.rst b/developer_manual/app/app/routes.rst new file mode 100644 index 000000000..8d04579c7 --- /dev/null +++ b/developer_manual/app/app/routes.rst @@ -0,0 +1,12 @@ +Routes +====== + +.. sectionauthor:: Bernhard Posselt + +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 `_ + +Routes are declared in :file:`appinfo/routes.php` diff --git a/developer_manual/app/appframework/routes.rst b/developer_manual/app/appframework/routes.rst index 915dc5df5..708b4e074 100644 --- a/developer_manual/app/appframework/routes.rst +++ b/developer_manual/app/appframework/routes.rst @@ -1,15 +1,4 @@ -Routes -====== - -.. sectionauthor:: Bernhard Posselt - -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 `_ - -Routes are declared in :file:`appinfo/routes.php` +.. include:: ../app/routes.rst A simple route would look like this: diff --git a/developer_manual/app/index.rst b/developer_manual/app/index.rst index ca22d01e1..fe3e73921 100644 --- a/developer_manual/app/index.rst +++ b/developer_manual/app/index.rst @@ -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 ~~~~~~~~