Skip to content

Commit

Permalink
Adding a note about 404 and mod_rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
karelbilek authored and dg committed Nov 25, 2013
1 parent 78ab037 commit 01a8a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/en/quickstart/single-post.texy
Expand Up @@ -36,7 +36,7 @@ class PostPresenter extends BasePresenter

The `renderShow` method requires one argument - the ID of the post to be displayed. Then, it loads the post from the database and passes the result to the template.

To the `app/presenters/templates/Homepage/default.latte` template we`ll add a link to the action `Post:show`.
In the `app/presenters/templates/Homepage/default.latte` template, we’ve already created a link to the `Post:show` action, for which a template doesn’t exist yet. You can try to open a post in your browser using the link in the list on the home page. (If you see 404 error, you need to enable mod_rewrite at your webserver.) [Tracy |tracy:homepage] will show an error, because the `app/presenters/templates/Post/show.latte` template has not yet been created (if you see 404 error, you probably need to enable mod_rewrite at your webserver). Let’s add that one now:

/--html
...
Expand Down

0 comments on commit 01a8a98

Please sign in to comment.