Skip to content

Commit

Permalink
Merge pull request #4024 from yannickroger/get_started_fixes
Browse files Browse the repository at this point in the history
Doc: Get started fixes
  • Loading branch information
core23 authored Jul 29, 2016
2 parents cd54b2a + 2f92cc4 commit 7386ec0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Resources/doc/getting_started/creating_an_admin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ using these commands:

.. code-block:: bash
$ php app/console doctrine:generate:entity --entity="AppBundle:Category" --fields="name:string(255)" --no-interaction
$ php app/console doctrine:generate:entity --entity="AppBundle:BlogPost" --fields="title:string(255) body:text draft:boolean" --no-interaction
$ php bin/console doctrine:generate:entity --entity="AppBundle:Category" --fields="name:string(255)" --no-interaction
$ php bin/console doctrine:generate:entity --entity="AppBundle:BlogPost" --fields="title:string(255) body:text draft:boolean" --no-interaction
After this, you'll need to tweak the entities a bit:

Expand Down Expand Up @@ -102,7 +102,7 @@ After this, create the schema for these entities:

.. code-block:: bash
$ php app/console doctrine:schema:create
$ php bin/console doctrine:schema:create
.. note::

Expand Down
19 changes: 15 additions & 4 deletions Resources/doc/getting_started/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,27 @@ You can do this by importing them in the routing configuration:
resource: "@SonataAdminBundle/Resources/config/routing/sonata_admin.xml"
prefix: /admin
Step 5: Preparing your Environment
Step 5: Enable the "translator" service
---------------------------------------

The translator service is required by SonataAdmin to display all labels properly.

.. code-block:: yaml
# app/config/config.yml
framework:
translator: { fallbacks: [en] }
Step 6: Preparing your Environment
----------------------------------

As with all bundles you install, it's a good practice to clear the cache and
install the assets:

.. code-block:: bash
$ php app/console cache:clear
$ php app/console assets:install
$ php bin/console cache:clear
$ php bin/console assets:install
The Admin Interface
-------------------
Expand All @@ -157,7 +168,7 @@ server, you can now visit the admin page on http://localhost:8000/admin
.. note::

This tutorial assumes you are using the build-in server using the
``php app/console server:start`` (or ``server:run``) command.
``php bin/console server:start`` (or ``server:run``) command.

.. image:: ../images/getting_started_empty_dashboard.png

Expand Down

0 comments on commit 7386ec0

Please sign in to comment.