Skip to content

genemu/GenemuDoctrineExtraBundle

Repository files navigation

DoctrineExtraBundle

Installation

Installation using the bin/vendor method

If you're using the bin/vendors method to manage your vendor libraries, add the following entries to the deps in the root of your project file:

[GenemuDoctrineExtraBundle]
    git=http://github.com/genemu/GenemuDoctrineExtraBundle.git
    target=bundles/Genemu/Bundle/DoctrineExtraBundle

Add the namespace to your autoloader

If it is the first Genemu bundle you install in your Symfony 2 project, you need to add the Genemu namespace to your autoloader:

// app/autoload.php
$loader->registerNamespaces(array(
    'Genemu' => __DIR__.'/../vendor/bundles'
    // ...
));

Initialize the bundle

To start using the bundle, initialize the bundle in your Kernel. This file is usually located at app/AppKernel:

public function registerBundles()
{
    $bundles = array(
        // ...
        new Genemu\Bundle\DoctrineExtraBundle\GenemuDoctrineExtraBundle(),
    );
)

Initialize database

To create Bundle, Controller, Method and View, intilialize fixtures in your database.

./app/console doctrine:database:create
./app/console doctrine:schema:create

Initialize doctrine fixtures for this service

./app/console doctrine:fixtures:load

This command save in your database all Bundles, Controllers, Methods and Views

./app/console router:fixtures:update

Publish assets

./app/console assets:install

Initialize routing app/config/routing.yml

_genemu_doctrine_routing:
    resource: GenemuDoctrineExtraBundle:Routing
    type:     doctrine

Routing Manager

Url to routing manager is http:://yoursite/routing

About

Create i18n Routing and template to Database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published