phlexible / frontend-search-bundle
phlexible frontend search bundle
Installs: 159
Dependents: 0
Suggesters: 1
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.6.0
- phlexible/elastica-bundle: ^1.2
- phlexible/indexer-page-bundle: ^1.1
- white-october/pagerfanta-bundle: ^1.0
Requires (Dev)
- phpunit/phpunit: ^5.6
README
The PhlexibleFrontendSearchBundle adds a generic search front end for elements that are index through the PhlexibleIndexerPageBundle.
Installation
- Download PhlexibleFrontendSearchBundle using composer
- Enable the Bundle
- Import PhlexibleFrontendSearchBundle routing
- Clear the symfony cache
Step 1: Download PhlexibleFrontendSearchBundle using composer
Add PhlexibleFrontendSearchBundle by running the command:
$ php composer.phar require phlexible/frontend-search-bundle "~1.0.0"
Composer will install the bundle to your project's vendor/phlexible
directory.
Step 2: Enable the bundle
Enable the bundle and the required WhiteOctoberPagerfantaBundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Phlexible\Bundle\FrontendSearchBundle\PhlexibleFrontendSearchBundle(), new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(), ); }
Step 3: Import PhlexibleFrontendSearchBundle routing
Import the PhlexibleFrontendSearchBundle routing.
# app/config/routing.yml phlexible_frontendsearch_search: resource: "@PhlexibleFrontendSearchBundle/Controller/SearchController.php" type: annotation
Step 4: Clear the symfony cache
If you access your phlexible application with environment prod, clear the cache:
$ php app/console cache:clear --env=prod