emiliomg/frontpage-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Simple frontpage if your project needs no frontpage but a 404-page is just plain ugly.

Installs: 18

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:symfony-bundle

1.0.1 2015-12-22 23:02 UTC

This package is not auto-updated.

Last update: 2020-10-06 23:09:36 UTC


README

This Symfony-Bundle provides an easy to use generic Frontpage.

Installation

  1. Add the bundle in your composer.json:
"require": {
    "emiliomg/frontpage-bundle": "~1.0"
}
  1. Register the bundle in app/AppKernel.php:
// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new EmilioMg\FrontpageBundle\EmilioMgFrontpageBundle(),
    );
}
  1. Import the routing definition in app/config/routing.yml:
# app/config/routing.yml
emiliomg_frontpage:
    resource: "@EmilioMgFrontpageBundle/Resources/config/routing.yml"
    prefix:   /
  1. Install the assets
	$ bin/console assets:install
  1. (Optional) Enable the bundles configuration in app/config/config.yml:
# app/config/config.yml
emilio_mg_frontpage: ~	

Configuration

The default text is rather generic. If you want to use your own text (which is recommended), override the bundle's config in app/config/config.yml:

emilio_mg_frontpage:
    text: "The text I want to display. Text in #hashtags# will be emphasised."
    title: "The Title of the page. If not set, the title will equal the text."