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

Commit 3385de9

Browse files
committed
Merge branch 'master' into dev
2 parents 2e85489 + 72a02cd commit 3385de9

File tree

5 files changed

+31
-4
lines changed

5 files changed

+31
-4
lines changed

book/installation.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,21 @@ And then access the CMF via:
128128
129129
http://localhost:8000
130130
131+
132+
If you run an Apache installation as described in the `Symfony cookbook article on setup`_,
133+
your URL will look like this:
134+
135+
.. code-block:: text
136+
137+
http://localhost/app_dev.php
138+
139+
.. note::
140+
141+
Adding the ``app_dev.php`` to the url in your browser is important to actually
142+
see the test page. Because the AcmeDemoBundle is only configured to work with the
143+
Development Environment. (If you have a look at ``AppKernel.php`` you can easily
144+
spot why)
145+
131146
.. sidebar:: Using Other Database Backends
132147

133148
If you prefer to use another database backend, for example MySQL, run the
@@ -254,3 +269,4 @@ and then run the following command:
254269
.. _`guidelines in the symfony book`: http://symfony.com/doc/master/book/installation.html#configuration-and-setup
255270
.. _`the Symfony2 book`: http://symfony.com/doc/current/book/
256271
.. _`Fixtures`: http://symfony.com/doc/current/bundles/DoctrineFixturesBundle/index.html
272+
.. _`Symfony cookbook article on setup`: http://symfony.com/doc/current/cookbook/configuration/web_server_configuration.html

book/simplecms.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ To create a page, use the
4949
// // src/Acme/MainBundle/DataFixtures/PHPCR/LoadSimpleCms.php
5050
namespace Acme\DemoBundle\DataFixtures\PHPCR;
5151

52-
use Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page;
52+
use Doctrine\Common\DataFixtures\FixtureInterface;
53+
use Doctrine\Common\Persistence\ObjectManager;
5354
use Doctrine\ODM\PHPCR\DocumentManager;
55+
use Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page;
5456

5557
class LoadSimpleCms implements FixtureInterface
5658
{
@@ -97,8 +99,10 @@ structure, you would do::
9799
// // src/Acme/MainBundle/DataFixtures/PHPCR/LoadSimpleCms.php
98100
namespace Acme\DemoBundle\DataFixtures\PHPCR;
99101

100-
use Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page;
102+
use Doctrine\Common\DataFixtures\FixtureInterface;
103+
use Doctrine\Common\Persistence\ObjectManager;
101104
use Doctrine\ODM\PHPCR\DocumentManager;
105+
use Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page;
102106

103107
class LoadSimpleCms implements FixtureInterface
104108
{

quick_tour/the_router.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ other examples:
4747
/about # /about Route
4848
/contact # /contact Route
4949
/team # /contact/team Route
50-
/docs # /docs Route
50+
/docs # /contact/docs Route
5151
5252
OK, you got it? The only thing the Router has to do is prefix the route with a
5353
specific path prefix and load that document. In the case of the SimpleCmsBundle,

tutorial/make-homepage.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,8 @@ the page action::
404404
// src/Acme/BasicCmsBundle/Controller/DefaultController.php
405405

406406
// ...
407+
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
408+
407409
class DefaultController extends Controller
408410
{
409411
// ...

tutorial/the-frontend.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,13 @@ first level of child items. Modify your fixtures to declare a root element
108108
to which you will add the existing ``Home`` page and an additional ``About`` page::
109109

110110
// src/Acme/BasicCmsBundle/DataFixtures/Phpcr/LoadPageData.php
111+
namespace Acme\DemoBundle\DataFixtures\PHPCR;
112+
113+
use Doctrine\Common\DataFixtures\FixtureInterface;
114+
use Doctrine\Common\Persistence\ObjectManager;
115+
use Doctrine\ODM\PHPCR\DocumentManager;
116+
use Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page;
111117

112-
// ...
113118
class LoadPageData implements FixtureInterface
114119
{
115120
public function load(ObjectManager $dm)

0 commit comments

Comments
 (0)