sfOfflineFilterPlugin - 0.1.0

This plugins is a filter that if you want to set your website offline

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 | Show as Markdown

sfOfflineFilterPlugin

This plugins is a filter that if you want to set your website offline

How to Install

  • If you're using sfGuardUser you've nothing to do else check if in your myUser.class.php you've have define the public function isSuperAdmin() else do it.

The super Admins are the only to be allowed to see the website if they arre not connected

  • Install the filter :

Into your filters.yml of you're frontend app

# insert your own filters here
offline:
  class: sfOfflineFilter

Set the website offline

Into the frontend/config/app.yml

# default values
all:
  is_offline:
    module: sfSimplePage #Module to forward
    action: index #Action to forward default is index
    params: # Array of params to set before forward 
      alias: site-hors-ligne