Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 10a3d73

Browse files
committed
Merge pull request #478 from symfony-cmf/se_update
Updated Quick Tour for 1.1
2 parents 7975900 + 81be2a3 commit 10a3d73

13 files changed

+149
-60
lines changed
53 KB
Loading
-1.35 KB
Loading
-52 Bytes
Loading
11.6 KB
Loading
-8.61 KB
Loading
-7.44 KB
Loading

book/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ from github:
8686

8787
.. code-block:: bash
8888
89-
$ git clone git://github.com/symfony-cmf/symfony-cmf-standard.git <path-to-install>
89+
$ git clone git://github.com/symfony-cmf/standard-edition.git <path-to-install>
9090
$ cd <path-to-install>
9191
9292
You still need Composer to get the dependencies. To get the correct

bundles/simple_cms/extending_page_class.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,3 @@ For example::
7474

7575
These properties can then be accessed in your controller or templates via the
7676
``getExtras()`` or ``getExtra($key)`` methods.
77-
78-
.. _`SimpleCmsBundle`: https://github.com/symfony-cmf/SimpleCmsBundle#readme
79-
.. _`Symfony CMF Standard Edition`: https://github.com/symfony-cmf/symfony-cmf-standard
80-
.. _`CMF website`: https://github.com/symfony-cmf/cmf-website/

bundles/simple_cms/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Sections
3737
* :doc:`rendering`
3838
* :doc:`extending_page_class`
3939

40-
.. _`Symfony CMF Standard Edition`: https://github.com/symfony-cmf/symfony-cmf-standard
40+
.. _`Symfony CMF Standard Edition`: https://github.com/symfony-cmf/standard-edition
4141
.. _`CMF website`: https://github.com/symfony-cmf/cmf-website/
4242
.. _`with composer`: http://getcomposer.org
4343
.. _`Packagist`: https://packagist.org/packages/symfony-cmf/simple-cms-bundle

quick_tour/the_big_picture.rst

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,11 @@ Setting up the Database
5151
~~~~~~~~~~~~~~~~~~~~~~~
5252

5353
Now, the only thing left to do is setting up the database. This is not
54-
something you are used to doing when creating Symfony applications, but to make a
55-
lot of things configurable using an admin, the Symfony CMF needs a database.
54+
something you are used to doing when creating Symfony applications, but the
55+
Symfony CMF needs a database in order to make a lot of things configurable
56+
using an admin interface.
5657

57-
To get quickly started, it is expected that you have enabled the sqlite
58+
To quickly get started, it is expected that you have enabled the sqlite
5859
extension. After that, run these commands:
5960

6061
.. code-block:: bash
@@ -67,7 +68,7 @@ extension. After that, run these commands:
6768
.. tip::
6869

6970
You are going to learn more about the Database layer of the Symfony CMF
70-
later in the Quick Tour.
71+
:doc:`in the next chapter of the Quick Tour <the_model>`.
7172

7273
.. seealso::
7374

@@ -81,9 +82,9 @@ The Request Flow
8182

8283
When you have at least PHP 5.4, use the ``server:run`` command to run a
8384
local server for the demo. Otherwise, use a localhost and prefix the URLs
84-
with ``/path-to-project/web/app_dev.php/``.
85+
in this document with ``/path-to-project/web/app_dev.php/``.
8586

86-
Now the standard edition is ready to use, navigate to the homepage
87+
Now, the Standard Edition is ready to use. Navigate to the homepage
8788
(``http://localhost:8000/``) to see the demo:
8889

8990
.. image:: ../_images/quick_tour/big-picture-home.png
@@ -93,7 +94,7 @@ closer look at the request flow for a Symfony CMF application:
9394

9495
.. image:: ../_images/quick_tour/request_flow.png
9596

96-
First of all, you see a typical symfony request flow following the white
97+
First of all, you see a typical Symfony request flow following the white
9798
blocks. It creates a ``Request`` object which will be passed to a router,
9899
which executes the controller and that controller uses models to generate a
99100
view to put in the response.
@@ -140,7 +141,7 @@ object.
140141

141142
.. note::
142143

143-
You'll learn more about the router in the next chapter of the Quick Tour.
144+
You'll learn more about the router :doc:`further in the Quick Tour <the_router>`.
144145

145146
The Controller
146147
~~~~~~~~~~~~~~
@@ -167,17 +168,17 @@ Adding a New Page
167168
Now you know the request flow, you can start adding a new page. In the Symfony
168169
CMF Standard Edition, the data is stored in data files, which are loaded when
169170
executing the ``doctrine:phpcr:fixtures:load`` command. To add a new page, you
170-
just need to edit such a data file, which is located in the ``Resources/data``
171-
directory:
171+
just need to edit such a data file, which is located in the
172+
``src/Acme/DemoBundle/Resources/data`` directory:
172173

173174
.. code-block:: yaml
174175
175-
# src/Acme/MainBundle/Resources/data/page.yml
176-
static:
176+
# src/Acme/MainBundle/Resources/data/pages.yml
177+
Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page:
177178
# ...
178179
179180
quick_tour:
180-
name: "quick_tour"
181+
id: /cms/simple/quick_tour
181182
label: "Quick Tour"
182183
title: "Reading the Quick Tour"
183184
body: "I've added this page while reading the quick tour"
@@ -190,7 +191,11 @@ the changes on the database and after refreshing, you can see your new page!
190191
Live Editing
191192
------------
192193

193-
You may already noticed the big black bar at the top of the site:
194+
Now is the time you become an admin of this site and editing the content using
195+
the Web Interface. To do this click on "Admin Login" and use the provided
196+
credentials.
197+
198+
You'll see that you have a new bar at the top of the page:
194199

195200
.. image:: ../_images/quick_tour/big-picture-createjs-bar.png
196201

0 commit comments

Comments
 (0)