2017 © Pedro Peláez
 

symfony-bundle widgets-bundle

Symfony Bundle for easy creating and managing client-side widgets

image

harentius/widgets-bundle

Symfony Bundle for easy creating and managing client-side widgets

  • Tuesday, June 13, 2017
  • by harentius
  • Repository
  • 1 Watchers
  • 1 Stars
  • 147 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

Widgets Bundle

Symfony Bundle for easy creating and managing client-side widgets. Has SonataAdminBundle dependency and provide management., (*1)

Installation

1), (*2)

$ composer.phar require harentius/widgets-bundle

2) Enable bundle in the kernel:, (*3)

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Harentius\WidgetsBundle\HarentiusWidgetsBundle(),
    );

    // ...
}

3) Include configuration:, (*4)

imports:
    ....
    - { resource: "@HarentiusWidgetsBundle/Resources/config/config.yml" }

4) Configure:, (*5)

harentius_widgets:
    # List of routes, where widgets can be placed
    routes:
        acme_homepage:
            # User-friendly name for displaying in admin section (sonata)
            name: Homepage
        acme_blog_show:
            name: Article
            # Parameters, present in route
            parameters:
                slug:
                    # Source (Now only entity supported)
                    source:
                        class: HarentiusBlogBundle:Article
                        # Value to be passed to the route 
                        field: slug
                        # Value to be shown in admin section
                        identity: title
    # Registering widgets: key used in templates (look behind), value - shown in admin section
    widgets:
        widgets_block_sidebar: Sidebar
        widgets_block_bottom_left: Bottom left
        widgets_block_bottom_right: Bottom right

5) Place in templates where you want:, (*6)

    {{ harentius_widget('widgets_block_sidebar') }}
    ....
    {{ harentius_widget('widgets_block_bottom_left') }}
    ....
    {{ harentius_widget('widgets_block_bottom_right') }}

The Versions

13/06 2017

dev-master

9999999-dev http://folkprog.net/en/widgets-bundle/

Symfony Bundle for easy creating and managing client-side widgets

  Sources   Download

MIT

The Requires

 

symfony widgets

13/06 2017

v1.0.2

1.0.2.0 http://folkprog.net/en/widgets-bundle/

Symfony Bundle for easy creating and managing client-side widgets

  Sources   Download

MIT

The Requires

 

symfony widgets

14/08 2016

v1.0.1

1.0.1.0 http://folkprog.net/en/widgets-bundle/

Symfony Bundle for easy creating and managing client-side widgets

  Sources   Download

MIT

The Requires

 

symfony widgets

16/12 2015

v1.0.0

1.0.0.0 http://folkprog.net/en/widgets-bundle/

Symfony Bundle for easy creating and managing client-side widgets

  Sources   Download

MIT

The Requires

 

symfony widgets