@@ -51,10 +51,11 @@ Setting up the Database
51
51
~~~~~~~~~~~~~~~~~~~~~~~
52
52
53
53
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.
56
57
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
58
59
extension. After that, run these commands:
59
60
60
61
.. code-block :: bash
@@ -67,7 +68,7 @@ extension. After that, run these commands:
67
68
.. tip ::
68
69
69
70
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 >` .
71
72
72
73
.. seealso ::
73
74
@@ -81,9 +82,9 @@ The Request Flow
81
82
82
83
When you have at least PHP 5.4, use the ``server:run `` command to run a
83
84
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/ ``.
85
86
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
87
88
(``http://localhost:8000/ ``) to see the demo:
88
89
89
90
.. image :: ../_images/quick_tour/big-picture-home.png
@@ -93,7 +94,7 @@ closer look at the request flow for a Symfony CMF application:
93
94
94
95
.. image :: ../_images/quick_tour/request_flow.png
95
96
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
97
98
blocks. It creates a ``Request `` object which will be passed to a router,
98
99
which executes the controller and that controller uses models to generate a
99
100
view to put in the response.
@@ -140,7 +141,7 @@ object.
140
141
141
142
.. note ::
142
143
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 >` .
144
145
145
146
The Controller
146
147
~~~~~~~~~~~~~~
@@ -167,17 +168,17 @@ Adding a New Page
167
168
Now you know the request flow, you can start adding a new page. In the Symfony
168
169
CMF Standard Edition, the data is stored in data files, which are loaded when
169
170
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:
172
173
173
174
.. code-block :: yaml
174
175
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 :
177
178
# ...
178
179
179
180
quick_tour :
180
- name : " quick_tour"
181
+ id : /cms/simple/ quick_tour
181
182
label : " Quick Tour"
182
183
title : " Reading the Quick Tour"
183
184
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!
190
191
Live Editing
191
192
------------
192
193
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:
194
199
195
200
.. image :: ../_images/quick_tour/big-picture-createjs-bar.png
196
201
0 commit comments