sfSmartContextPlugin - 1.0.2

Simple SmartContext integration.

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source

SmartContext integration Plug-in

The sfSmartContextPlugin offers the integrate with SmartContext.

Instalation

  • Install the plugin:

    $ symfony plugin:install sfSmartContextPlugin
    
  • Add the sfSmartContextFilter to your filter chain:

    rendering: ~
    security:  ~
    
    # insert your own filters here
    smart_context:
      class: sfSmartContextFilter
    
    cache:     ~
    common:    ~
    execution: ~
    

Configuration

  • Global configuration

    Global configuration is done in your application's app.yml file:

    all:
      smart_context_plugin:
        site:    http__yoursite.com
        enabled: true
    
  • Configuration per module

    To disable SmartContext in action index in module default add to your apps/frontend/modules/default/config/module.yml file following configuration:

    all:
      index:
        smart_context:
          enabled: false