How do I report an error in the tutorial “Quickstart:SinglePostPage”?

kd4ttc
Member | 5
+
0
-

I'm starting out and was frustrated by one error in the tutorial SinglePostPage. In the page https://doc.nette.org/…/single-post
the PostPresenter code example is missing the opening <?php tag. If a beginner (like me) just makes a file with that example code the app won't work.

How do I bring this omission to the attention of the site admin?

Steve

Rick Strafy
Nette Blogger | 78
+
+1
-

Hi, I don't think this should be added to the docs, it's just a well known fact that every .php file needs to start with that and there is no way around, if you are using some editor for php and not classic text editor, you should notice that your code will became colorless (no syntax highlighting) without that at the start, even Notepad++ will do that.

kd4ttc
Member | 5
+
0
-

Yeah, it was a duh moment after I realized it. However, Nette does a lot of magic, so I was copying the files as they were presented. Another issue is the example doesn’t work with debug off. A little introductory paragraph would be nice. As a rank beginner I’m especially qualified to give hints to other beginners since I’m having to install the IDE, Nettie, composer, Apache and other software from the start.

Rick Strafy
Nette Blogger | 78
+
0
-

If you want more examples, I wrote one 2 years ago, https://github.com/…at-file-blog – just run composer install or update and that command in readme, it's a simple blog with articles and front/admin module.

David Grudl
Nette Core | 8205
+
+2
-

I think the design plays a role there, that the code listing looks like in an editor window, and then the opening tag <?php is really missing. I'll probably add it to the quickstart or remove the frame.