English spoken conference

SearchBundle

1.3 version
Maintained Unmaintained

SearchBundle

The SearchBundle provides integration with LiipSearchBundle to provide a site wide search.

Installation

You can install this bundle with composer using the symfony-cmf/search-bundle package.

Routing

Finally, add the relevant routing to your configuration

  • YAML
    1
    2
    cmf_search:
        resource: "@CmfSearchBundle/Resources/config/routing/phpcr/search.xml"
    
  • XML
    1
    2
    3
    4
    5
    6
    7
    8
    <?xml version="1.0" encoding="UTF-8" ?>
    <routes xmlns="http://symfony.com/schema/routing"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://symfony.com/schema/routing
            http://symfony.com/schema/routing/routing-1.0.xsd">
    
        <import resource="@CmfSearchBundle/Resources/config/routing/phpcr/search.xml" />
    </routes>
    
  • PHP
    1
    2
    3
    4
    5
    6
    7
    use Symfony\Component\Routing\RouteCollection;
    
    $collection = new RouteCollection();
    $fileName = "@CmfSearchBundle/Resources/config/routing/phpcr/search.xml";
    $collection->addCollection($loader->import($fileName));
    
    return $collection;
    

This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.