2017 © Pedro Peláez
 

symfony-bundle notice-manager-bundle

Notice manager Symfony2 bundle

image

tadcka/notice-manager-bundle

Notice manager Symfony2 bundle

  • Sunday, January 26, 2014
  • by Tadcka
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

NoticeManagerBundle

SensioLabsInsight, (*1)

Notice manager Symfony2 bundle, (*2)

Installation

Step 1: Download NoticeManagerBundle using composer

Add TadckaNoticeBundle in your composer.json:, (*3)

{
    "require": {
        "tadcka/notice-manager-bundle": "dev-master"
    }
}

Now tell composer to download the bundle by running the command:, (*4)

``` bash $ php composer.phar update tadcka/notice-manager-bundle, (*5)


### Step 2: Enable the bundle Enable the bundle in the kernel: ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Tadcka\AddressBundle\TadckaNoticeManagerBundle(), ); }

Step 3: Include javascript and css

@TadckaNoticeManagerBundle/Resources/public/css/notice-manager.css

@TadckaNoticeManagerBundle/Resources/public/js/notice-manager.js

Step 4: Include twig template

{% include 'TadckaNoticeManagerBundle::flash_notices.html.twig' %}

Step 5: Example

``` php $noticeContainer = new \Tadcka\NoticeManagerBundle\Container\NoticeContainer(); $noticeContainer->add('Hello world!', \Tadcka\NoticeManagerBundle\NoticeType::SUCCESS); $this->get('tadcka_notice_manager')->save($noticeContainer);, (*6)

or, (*7)

$noticeContainer = new \Tadcka\NoticeManagerBundle\Container\NoticeContainer(); $noticeContainer->add('Hello world!', \Tadcka\NoticeManagerBundle\NoticeType::SUCCESS); $html = $this->renderView( 'TadckaNoticeManagerBundle::notices.html.twig', array( 'notice_container' => $noticeContainer->getNotices(), ) ); ```, (*8)

The Versions

26/01 2014

dev-master

9999999-dev https://github.com/tadcka/NoticeManagerBundle

Notice manager Symfony2 bundle

  Sources   Download

MIT

The Requires

 

by Tadas Gliaubicas

notice notice manager

19/11 2013

v1.0.0

1.0.0.0 https://github.com/tadcka/NoticeManagerBundle

Notice manager Symfony2 bundle

  Sources   Download

MIT

The Requires

 

by Tadas Gliaubicas

notice notice manager