Giter VIP home page Giter VIP logo

frontend-search-bundle's Introduction

PhlexibleFrontendSearchBundle

The PhlexibleFrontendSearchBundle adds a generic search front end for elements that are index through the PhlexibleIndexerPageBundle.

Installation

  1. Download PhlexibleFrontendSearchBundle using composer
  2. Enable the Bundle
  3. Import PhlexibleFrontendSearchBundle routing
  4. 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

frontend-search-bundle's People

Contributors

temp avatar

Watchers

James Cloos avatar Matthias Harmuth avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.