phlexible/suggest-bundle

phlexible suggest bundle

Installs: 98

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

1.0.0 2018-07-30 14:44 UTC

This package is auto-updated.

Last update: 2024-11-08 07:02:58 UTC


README

The PhlexibleSuggestBundle adds support for suggest fields for element types and meta sets in phlexible.

Installation

  1. Download PhlexibleSuggestBundle using composer
  2. Enable the Bundle
  3. Import PhlexibleSuggestBundle routing
  4. Update your database schema
  5. Clear the symfony cache

Step 1: Download PhlexibleSuggestBundle using composer

Add PhlexibleSuggestBundle by running the command:

$ php composer.phar require phlexible/suggest-bundle "~1.0.0"

Composer will install the bundle to your project's vendor/phlexible directory.

Step 2: Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Phlexible\Bundle\SuggestBundle\PhlexibleSuggestBundle(),
    );
}

Step 3: Import PhlexibleElementFinderBundle routing

Import the PhlexibleElementFinderBundle routing.

For administration backend:

# app/config/admin_routing.yml
phlexible_suggest:
    resource: "@PhlexibleSuggestBundle/Controller/"
    type:     annotation

Step 4: Update your database schema

Now that the bundle is set up, the last thing you need to do is update your database schema because the element finder includes entities that need to be installed in your database.

For ORM run the following command.

$ php app/console doctrine:schema:update --force

Step 5: Clear the symfony cache

If you access your phlexible application with environment prod, clear the cache:

$ php app/console cache:clear --env=prod