Skip to content

Commit eb785bb

Browse files
authored
Merge pull request #52 from tbreuss/develop
Edit docs
2 parents 462fccf + 7588c4f commit eb785bb

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

website/routes/doc.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -76,24 +76,24 @@ php -S localhost:8888 -t web
7676

7777
Open <http://localhost:8888> with your preferred web browser.
7878

79-
### Project Folder Structure
79+
### Folder Structure
8080

8181
A typical project folder structure looks like the following:
8282

8383
~~~text
84-
project/ # Project root folder on your server
85-
├─ cache/ # Folder with cached files
86-
├─ config/ # Folder with config files
87-
├─ logs/ # Folder with log files
88-
├─ routes/ # Folder with routes for your website
89-
│ └─ index.get.html # The only route in this example
90-
├─ vendor/ # Folder with Composer dependencies
91-
├─ views/ # Folder with twig templates
92-
│ ├─ base.html.twig # Twig base layout file
93-
│ └─ error.html.twig # Twig file for displaying errors
94-
└─ web/ # Web server public folder
95-
├─ assets/ # Folder with asset files like css or js
96-
└─ index.php # Website bootstrap file
84+
project/ # Project root folder on your server
85+
├─ cache/ # Cached files
86+
├─ config/ # Config files
87+
├─ logs/ # Log files
88+
├─ routes/ # Routes for your website
89+
│ └─ index.get.html # The only route in this example
90+
├─ vendor/ # Composer dependencies
91+
├─ views/ # Twig templates
92+
│ ├─ base.html.twig # Twig base layout file
93+
│ └─ error.html.twig # Twig file for displaying errors
94+
└─ web/ # Web server public folder
95+
├─ assets/ # Asset files like css or js
96+
└─ index.php # Website bootstrap file
9797
~~~
9898

9999
Normally you only work in the `routes` and `views` folders.
@@ -110,10 +110,10 @@ If no method is specified, the route applies to all methods.
110110
~~~text
111111
routes/
112112
├─ api/
113-
│ └─ test.patch.php # PATCH /api/test
114-
├─ index.php # ANY /
115-
├─ contact.get.php # GET /contact
116-
└─ contact.post.php # POST /contact
113+
│ └─ test.patch.php # PATCH /api/test
114+
├─ index.php # ANY /
115+
├─ contact.get.php # GET /contact
116+
└─ contact.post.php # POST /contact
117117
~~~
118118

119119
You can nest routes by creating subdirectories.
@@ -308,7 +308,7 @@ Zack! ships with the following events:
308308
- **zack.controller**: This event is dispatched just before the controller (i.e. the route handler) is determined.
309309
- **zack.routes**: This event is dispatched after the routes have been built.
310310

311-
#### Symfony HttpKernel Events
311+
#### HttpKernel Events
312312

313313
Zack! supports the following Symfony HttpKernel events:
314314

0 commit comments

Comments
 (0)