mihail/search-bundle

Search for Symfony2.8


Keywords
search
License
MIT

Documentation

Installation

Step 1: Download the Bundle

Download the Zip File from Github. Extract files and rename the main folder to 'SearchBundle'(remove '-master'). Place the folder in 'src/Mihail/'(you will have to create the folder with the vendor name Mihail). Structure after this: 'src/Mihail/SearchBundle/...'

Step 2: Enable the Bundle

Enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Mihail\SearchBundle\MihailSearchBundle(),
        );

        // ...
    }

    // ...
}

Step 3: Add bundle to routing file

Add the folowing to 'app/config/routing.yml'

mihail_search:
    resource: "@MihailSearchBundle/Controller/"
    type:     annotation
    prefix:   /