WARNING: You are browsing the documentation for version 1.0 which is not maintained anymore. If some of your projects are still using this version, consider upgrading.

SearchBundle

1.0 version
Maintained Unmaintained

SearchBundle

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

Installation

You can install the bundle in 2 different ways:

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.