dev-master
9999999-devphlexible suggest bundle
MIT
The Requires
- php >=5.6.0
The Development Requires
- doctrine/collections ^1.3
- symfony/config ^2.8
- symfony/dependency-injection ^2.8
- symfony/http-kernel ^2.8
- phpunit/phpunit ^5.7
tag suggest
phlexible suggest bundle
The PhlexibleSuggestBundle adds support for suggest fields for element types and meta sets in phlexible., (*1)
Add PhlexibleSuggestBundle by running the command:, (*2)
``` bash $ php composer.phar require phlexible/suggest-bundle "~1.0.0", (*3)
Composer will install the bundle to your project's `vendor/phlexible` directory. ### Step 2: Enable the bundle Enable the bundle in the kernel: ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Phlexible\Bundle\SuggestBundle\PhlexibleSuggestBundle(), ); }
Import the PhlexibleElementFinderBundle routing., (*4)
For administration backend:, (*5)
``` yaml, (*6)
phlexible_suggest: resource: "@PhlexibleSuggestBundle/Controller/" type: annotation, (*7)
### 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. ``` bash $ php app/console doctrine:schema:update --force
If you access your phlexible application with environment prod, clear the cache:, (*8)
bash
$ php app/console cache:clear --env=prod
, (*9)
phlexible suggest bundle
MIT
tag suggest