-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[WCM] Revamped the Quick Start tutorial #4374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WCM] Revamped the Quick Start tutorial #4374
Conversation
What does require PHP 5.4? Btw, I'll review the PR another time :) |
@wouterj PHP 5.4 is needed for the new Symfony Installer and for the built-in web server. |
👍 (since I already if we actually need different versions of it :)) |
@javiereguiluz Actually, I don't think that we can technically get rid of different versions of the quick tour (given how Git works). But links can be changed on symfony.com to only link to one version, right? |
@@ -13,17 +13,17 @@ Understanding the Directory Structure | |||
The directory structure of a Symfony :term:`application` is rather flexible, | |||
but the recommended structure is as follows: | |||
|
|||
* ``app/``: the application configuration; | |||
* ``src/``: the project's PHP code; | |||
* ``app/``: the application configuration and templates; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
translations too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1. There are also probably some other things, but I think 3 is enough - it gives you the right idea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but these three are important in my opinion as they are all explained in the Best Practices book.
We can, we just have to remove the quick tour each time we create a new version branch |
Hm, yes, you're right. We could keep it only in master. |
@@ -73,12 +74,21 @@ A bundle is kind of like a plugin in other software. So why is it called a | |||
Symfony, from the core framework features to the code you write for your | |||
application. | |||
|
|||
All the code you write for your application is organized in bundles. In Symfony | |||
speak, a bundle is a structured set of files (PHP files, stylesheets, JavaScripts, | |||
images, ...) that implements a single feature (a blog, a forum, ...) and which |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
implement (it refers to files, doesn't it?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the same phrase use originally in the tutorial. I think it's correct because "implements" refers to the bundle, not the files. But maybe the wording is confusing and we could change it. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's fine so.
@@ -98,34 +218,73 @@ Errors will inevitably happen during the execution of every web application. | |||
In the case of ``404`` errors, Symfony includes a handy shortcut that you can | |||
use in your controllers:: | |||
|
|||
throw $this->createNotFoundException(); | |||
// src/AppBundle/Controller/DefaultController.php |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should add the // ...
placeholder.
under your web root directory without changing anything in your template's | ||
code. | ||
The ``asset()`` function looks for the web assets inside the ``web/`` directory. | ||
If you store them in another directory, read :doc:`this article <cookbook/assetic/asset_management>` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
starting slash is missing
@javiereguiluz Thanks for taking this big step. Here's what I think we should do:
Thanks! |
@weaverryan I've addressed almost all of the suggestions made by reviewers, so I think we're good for the first merge. Then, let's create a separate PR to fix anything else. Thanks! |
Hey guys! I've merged this in, but into the 2.3 branch for now. I like the idea of only having one version of this, but it seems that would require some changes to the site. If we delete this from the 2.3 branch, for example, then this would 404 on the 2.3 page, correct? Anyways, I'm happy to figure this out, but I don't want that to hold us up. If I'm missing something, let me know! Thanks! |
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #4374). Discussion ---------- [WCM] Revamped the Quick Start tutorial | Q | A | ------------- | --- | Doc fix? | yes | New docs? | yes | Applies to | master (2.6+) | Fixed tickets | #4360 This is a total revamp of the Quick Start tutorial. Following the recent trend in the Symfony world, everything is simpler now. The main changes are: * The tutorial requires PHP 5.4 because this way everything is simpler. By the way, PHP 5.3 is unsupported since August 2014 and it's extremely dangerous to keep using it. * We use the `AppBundle` and the other changes that will introduce the standard edition soon. There are some pending PR. * Some advanced features, such as HTTP caching, have been removed. This tutorial is aimed for the total newcomer and it doesn't make sense to confuse him/her with things not needed at first. There is one important thing missing: * The section about installing Symfony is pending of the new Symfony installer, specially for Windows users. And one last comment: * Someone, which I cannot remember, commented a few weeks ago that maybe we should get rid of the different versions of this tutorial. I agree that the tutorial aimed for newcomers should be unique to avoid confusions and it should always explain the latest and greatest Symfony features. I've created this PR against the master branch for that reason and I ask the doc managers (@weaverryan, @wouterj and @xabbuh) to think about removing all the previous versions of this tutorial. Commits ------- 811f6e8 Included a bunch of fixes suggested by the awesome Symfony doc reviewers 940924c Added a bunch of fixes suggested by @xabbuh 6105acb Fixed a RST formatting issue baf4b9b Revamped the Quick Start tutorial
This is a total revamp of the Quick Start tutorial. Following the recent trend in the Symfony world, everything is simpler now. The main changes are:
AppBundle
and the other changes that will introduce the standard edition soon. There are some pending PR.There is one important thing missing:
And one last comment: