phlexible / element-finder-bundle
phlexible element finder bundle
Installs: 155
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.6.0
- doctrine/collections: ^1.3
- doctrine/dbal: ^2.0
- fluentdom/fluentdom: ^5.1
- phlexible/element-bundle: ~1.3
- phlexible/gui-bundle: ~1.3
- phlexible/tree-bundle: ~1.3
Requires (Dev)
README
The PhlexibleElementFinderBundle adds support for a finder field in phlexible.
Installation
- Download PhlexibleElementFinderBundle using composer
- Enable the Bundle
- Import PhlexibleElementFinderBundle routing
- Update your database schema
- Clear the symfony cache
Step 1: Download PhlexibleElementFinderBundle using composer
Add PhlexibleElementFinderBundle by running the command:
$ php composer.phar require phlexible/element-finder-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\ElementFinderBundle\PhlexibleElementFinderBundle(), ); }
Step 3: Import PhlexibleElementFinderBundle routing
Import the PhlexibleElementFinderBundle routing.
For frontend:
# app/config/routing.yml phlexible_element_finder_render: resource: "@PhlexibleElementFinderBundle/Controller/RenderController.php" type: annotation
For administration backend:
# app/config/admin_routing.yml phlexible_element_finder_config: resource: "@PhlexibleElementFinderBundle/Controller/ConfigController.php" 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