Skip to content

Latest commit

 

History

History
119 lines (70 loc) · 2.44 KB

File metadata and controls

119 lines (70 loc) · 2.44 KB

Installation

  1. Add the following lines to your composer.json
// composer.json
"require": {
//...,
    "rps/core-bundle": "dev-master",
    "rps/guestbook-bundle": "dev-master"
}
  1. Update the dependency
php composer.phar update rps/guestbook-bundle

Or you can do both steps in one command

php composer.phar require rps/core-bundle:dev-master rps/guestbook-bundle:dev-master
  1. Publish the bundle assets.

Run the following command

php app/console assets:install web [--symlink]

use the --symlink option to use symlinks to bundle assets.

  1. Enable the bundle

Add the RPSCoreBundle and RPSGuestbookBundle to your application kernel.

// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...,
        new RPS\CoreBundle\RPSCoreBundle(),
        new RPS\GuestbookBundle\RPSGuestbookBundle(),
    );
}
  1. Import the RPSGuestbookBundle routing file

Add the following to you routing file

# app/config/routing.yml
rps_guestbook:
    resource: "@RPSGuestbookBundle/Resources/config/routing.yml"
    prefix:   /
  1. Enable the translator in your configuration
# app/config/config.yml
framework:
    translator: { fallback: ~ }

For more information about translations, check the Symfony Translation documentation

  1. Update your schema

For ORM users run the following command

app/console doctrine:schema:update --force

For MongoDB users run the following command.

Other topics

  1. Doctrine Configuration
  2. Mailer Configuration
  3. Pager Configuration
  4. Spam Detection
  5. Views/Templates
  6. Guestbook Administration
  7. Default Configuration