Skip to content

[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

Closed
wants to merge 4 commits into from
Closed

[WCM] Revamped the Quick Start tutorial #4374

wants to merge 4 commits into from

Conversation

javiereguiluz
Copy link
Member

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.

@wouterj
Copy link
Member

wouterj commented Oct 25, 2014

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.

What does require PHP 5.4?

Btw, I'll review the PR another time :)

@javiereguiluz
Copy link
Member Author

@wouterj PHP 5.4 is needed for the new Symfony Installer and for the built-in web server.

@xabbuh
Copy link
Member

xabbuh commented Oct 25, 2014

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.

👍 (since I already if we actually need different versions of it :))

@xabbuh
Copy link
Member

xabbuh commented Oct 25, 2014

@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;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

translations too

Copy link
Member

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.

Copy link
Member

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.

@wouterj
Copy link
Member

wouterj commented Oct 25, 2014

Actually, I don't think that we can technically get rid of different versions of the quick tour (given how Git works).

We can, we just have to remove the quick tour each time we create a new version branch

@xabbuh
Copy link
Member

xabbuh commented Oct 25, 2014

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
Copy link
Member

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?)

Copy link
Member Author

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?

Copy link
Member

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
Copy link
Member

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>`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

starting slash is missing

@weaverryan
Copy link
Member

@javiereguiluz Thanks for taking this big step. Here's what I think we should do:

  1. Check out the comments and make updates. There are some good ones :).

  2. I'll then merge in and re-read everything from end-to-end and create a separate PR with tweaks (since the changes are big, it's better to re-read the whole thing).

Thanks!

@javiereguiluz
Copy link
Member Author

@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!

@weaverryan
Copy link
Member

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!

weaverryan added a commit that referenced this pull request Nov 13, 2014
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
@weaverryan weaverryan closed this Nov 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants