Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
_build/
*.pyc
_exts
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "_exts"]
path = _exts
url = http://github.com/fabpot/sphinx-php
Empty file removed _exts/sensio/__init__.py
Empty file.
Empty file removed _exts/sensio/sphinx/__init__.py
Empty file.
79 changes: 0 additions & 79 deletions _exts/sensio/sphinx/configurationblock.py

This file was deleted.

88 changes: 0 additions & 88 deletions _exts/sensio/sphinx/php.py

This file was deleted.

111 changes: 0 additions & 111 deletions _exts/sensio/sphinx/phpcode.py

This file was deleted.

55 changes: 0 additions & 55 deletions _exts/sensio/sphinx/refinclude.py

This file was deleted.

17 changes: 13 additions & 4 deletions book/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,19 @@ Symfony CMF SE does not provide any admin tools to create new pages. If you
are interested in adding an admin UI one solution can be found in
:doc:`../cookbook/creating_a_cms/sonata-admin`. However, if all you want
is a simple way to add new pages that you can then edit via the inline
editing, then you can use the SimpleCmsBundle ``page`` migrator. The Symfony
CMF SE ships with an example YAML file stored in
``app/Resources/data/pages/test.yml``. The contents of this file can be loaded
into the PHPCR database by calling:
editing, then you can use the SimpleCmsBundle ``page`` migrator. For example,
to add a page called "Testing", creating a file called
``app/Resources/data/pages/test.yml`` with the following contents:

.. code-block:: yaml

label: "Testing"
title: "Testing"
body: |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
<p>Morbi eleifend, ipsum eget facilisis lacinia, lorem dui venenatis quam, at vulputate purus erat sit amet elit.</p>

The contents of this file can be loaded into the PHPCR database by calling:

.. code-block:: bash

Expand Down
4 changes: 3 additions & 1 deletion book/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,8 @@ follows::
namespace Acme\DemoBundle\DataFixtures\PHPCR;

use Doctrine\ODM\PHPCR\DocumentManager;
use Doctrine\Common\DataFixtures\FixtureInterface;
use Doctrine\Common\Persistence\ObjectManager;
use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\Route;
use Symfony\Cmf\Bundle\ContentBundle\Doctrine\Phpcr\StaticContent;

Expand Down Expand Up @@ -476,7 +478,7 @@ follows::
$route->setRequirement('id', '\d+');
$route->setDefault('id', 1);

$dm->persist($route),
$dm->persist($route);
$dm->flush();
}
}
Expand Down
Loading