aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/en/developers/03_Backend/05_Extensions.md
diff options
context:
space:
mode:
authorThomas Renes <thomas@renesweb.nl>2022-01-08 16:25:17 +0100
committerGitHub <noreply@github.com>2022-01-08 16:25:17 +0100
commit916df412f5b6f7fb9bcfb705a3c8c23e35304410 (patch)
treed87c483688575cb5a6b674849e2aefa2052116c8 /docs/en/developers/03_Backend/05_Extensions.md
parent127b7f0a3aad7012055c058e8aba0d27192a8cbc (diff)
downloadfreshrss-916df412f5b6f7fb9bcfb705a3c8c23e35304410.tar.gz
freshrss-916df412f5b6f7fb9bcfb705a3c8c23e35304410.zip
Fix various typos and spelling errors in documentation, comments and code. (#4134)
Diffstat (limited to 'docs/en/developers/03_Backend/05_Extensions.md')
-rw-r--r--docs/en/developers/03_Backend/05_Extensions.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/en/developers/03_Backend/05_Extensions.md b/docs/en/developers/03_Backend/05_Extensions.md
index 1104b30f5..90fe6f699 100644
--- a/docs/en/developers/03_Backend/05_Extensions.md
+++ b/docs/en/developers/03_Backend/05_Extensions.md
@@ -39,7 +39,7 @@ Minz relies on and imposes an MVC architecture on projects using it. This archit
### Routing
In order to link a URL to a controller, first you have to go through a "routing" phase. In FreshRSS, this is particularly simple because it suffices to specify the name of the controller to load into the URL using a `c` parameter.
-For example, the address <http://exemple.com?c=hello> will execute the code contained in the `hello` controller.
+For example, the address <http://example.com?c=hello> will execute the code contained in the `hello` controller.
One concept that has not yet been discussed is the "actions" system. An action is executed *on* a controller. Concretely, a controller is represented by a class and its actions by methods. To execute an action, it is necessary to specify an `a` parameter in the URL.
@@ -61,10 +61,10 @@ class FreshRSS_hello_Controller extends FreshRSS_ActionController {
?>
```
-When loading the address <http://exemple.com?c=hello&a=world>, the `world` action is executed on the `hello` controller.
+When loading the address <http://example.com?c=hello&a=world>, the `world` action is executed on the `hello` controller.
Note: if `c` or `a` is not specified, the default value for each of these variables is `index`.
-So the address <http://exemple.com?c=hello> will execute the `index` action of the `hello` controller.
+So the address <http://example.com?c=hello> will execute the `index` action of the `hello` controller.
From now on, the `hello/world` naming convention will be used to refer to a controller/action pair.
@@ -125,7 +125,7 @@ To take full advantage of the Minz routing system, it is strongly discouraged to
</p>
```
-If one day it was decided to use a "url rewriting" system to have addresses in a <http://exemple.com/controller/action> format, all previous addresses would become ineffective!
+If one day it was decided to use a "url rewriting" system to have addresses in a <http://example.com/controller/action> format, all previous addresses would become ineffective!
So use the `Minz_Url` class and its `display()` method instead. `Minz_Url::display()` takes an array of the following form as its argument: