2017 © Pedro Peláez
 

library active-link-bundle

Provides ability in Twig templates to determine if an action is being requested

image

bravesheep/active-link-bundle

Provides ability in Twig templates to determine if an action is being requested

  • Wednesday, July 16, 2014
  • by rnijveld
  • Repository
  • 2 Watchers
  • 0 Stars
  • 380 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

BravesheepActiveLinkBundle

This bundle provides a few Twig helper functions and filters for checking whether or not a specific part of your controller structure is active., (*1)

Note that some limitations apply, specifically this bundle does not work well with subrequests. Instead the bundle always requests the master request., (*2)

Installation

Using Composer add the bundle to your requirements:, (*3)

{
    "require": {
        "bravesheep/active-link-bundle": "dev-master"
    }
}

Then run composer update bravesheep/active-link-bundle. Finally add the bundle in app/AppKernel.php:, (*4)

public function registerBundles()
{
    return array(
        // ...
        new Bravesheep\ActiveLinkBundle\BravesheepActiveLinkBundle(),
        // ...
    );
}

Available twig functions

  • active(location[, params])
  • active_route(route[, params])
  • active_bundle(bundle[, params])
  • active_controller(controller[, params])
  • active_action(action[, params])

Available twig filters

  • location is active([params])
  • route is active_route([params])
  • bundle is active_bundle([params])
  • controller is active_controller([params])
  • action is active_action([params])

The Versions

16/07 2014

dev-master

9999999-dev

Provides ability in Twig templates to determine if an action is being requested

  Sources   Download

MIT

The Requires

 

by Ruben Nijveld

16/07 2014

v0.1.0

0.1.0.0

Provides ability in Twig templates to determine if an action is being requested

  Sources   Download

MIT

The Requires

 

by Ruben Nijveld