2017 © Pedro Peláez
 

symfony-bundle ajax-modals-bundle

Symfony Bundle to generate dialogs using Bootstrap Modal

image

jagilpe/ajax-modals-bundle

Symfony Bundle to generate dialogs using Bootstrap Modal

  • Sunday, May 28, 2017
  • by jagilpe
  • Repository
  • 1 Watchers
  • 0 Stars
  • 122 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 177 % Grown

The README.md

AjaxModalsBundle

AjaxModalsBundle is a Symfony Bundle for generating ajax form dialogs using Bootstrap Modal API., (*1)

Installation

You can install the bundle using composer:, (*2)

composer require jagilpe/ajax-modals-bundle

or add the package to your composer.json file directly., (*3)

To enable the bundle, you just have to register the bundle in your AppKernel.php file:, (*4)

// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new Jagilpe\AjaxModalsBundle\JagilpeAjaxModalsBundle(),
    // ...
);

You have also to include in the page template the container in which the modals will be loaded. For this simply include the jgp_modal_container twig function at the end of the body of your page, directly under the body tag., (*5)

<html>
    <head>
        <!-- Head content -->
    </head>
    <body>
        <!-- Body content -->
        {{ jgp_modal_container() }}        
    </body>
</html>

Finally you have to include the provided javascript file somewhere in your base template. If you use assetic to manage the assets:, (*6)

{% block javascripts %}
    {{ parent() }}
    {% javascripts
        'bundles/jagilpeajaxmodals/js/jgp-modal-dialog.js' %}
        <script src="{{ asset_url }}"></script>
    {% endjavascripts %}
{% endblock %}

This javascript depends on jQuery and Bootstrap 3 modal, so you have to load it somewhere in the template before this file. You have also to load the Bootstrap CSS in your page., (*7)

Documentation

You can read the documentation of the usage of the bundle here, (*8)

API Reference

https://api.gilpereda.com/ajax-modals-bundle/master/, (*9)

The Versions

28/05 2017

dev-master

9999999-dev

Symfony Bundle to generate dialogs using Bootstrap Modal

  Sources   Download

MIT

The Requires

 

The Development Requires

by Javier Gil

ajax bootstrap modal dialog

26/05 2017

1.0.0

1.0.0.0

Symfony Bundle to generate dialogs using Bootstrap Modal

  Sources   Download

MIT

The Requires

 

The Development Requires

by Javier Gil

ajax bootstrap modal dialog