This plugin is currently in BETA stage.

Documentation is under construct and may have inacurate parts. Please help us improving it by reporting invalid content/broken links.

Welcome to sfDynamicsPlugin homepage

Welcome on sfDynamicsPlugin homepage. This symfony plugin aims to revolution the way javascript is used in symfony projects. It supports extensible configuration, library dependances, stylesheets, i18n, themes, packing, caching, and much more. To have a detailed explanation of each features, please take a look at the documentation.

This plugin is not bound to a specific javascript framework, but instead provides an easy way to use set of scripts alltogether. For now, only configuration files for jQuery, jQuery UI, Prototype, Scriptaculous and ExtJS are provided, but our XML based configuration system allows to create different configuration packages describing how each framework interacts with each of their associated libraries.

Features

  • Dependencies management
  • Javascripts/stylesheets packing
  • Caching
  • Static cache of grouped assets
  • I18N*
  • Themes*
  • Supports all javascript frameworks**
  • Dynamic javascript*

Documentation

To get started right now, you should have a look at the tutorial to understand what the plugin aims at, and what it does not solve. To dive in sfDynamics secrets, take a look at the full documentation.

Install

Installing the plugin is easy, and can be done either by using the latest revision of the git repository, or by installing the latest tarball release.

Examples

A good way to get started too is to take a look at the examples on the right.

(*) Feature under development.
(**) For now, configuration files are bundled for jQuery, jQuery UI, ExtJS, Prototype and Scriptaculous. You need to write configuration files to use other frameworks.


What do they say...

Last comments...

  • Romain Dorgueil (5 months ago)

    Thanks Sam, just fixed it.
  • sam (5 months ago)

    In %sf_root_dir%/data/js/my.first.stylesheet.css path is incorrect, it should be In %sf_root_dir%/data/css/my.first.stylesheet.css
  • Romain Dorgueil (6 months ago)

    Hi Vince

    There is actually no real way to pack a tinymce. As you said, tinymce is very special, it has his own tree structure, and loads javascripts dynamically.

    I don't agree to the fact it should be packed with symfony core, it would need big refactoring work, and many important features are still missing (like media and position management).

    But thanks for your comment, glad to know it's usefull for other people.
  • Vince (7 months ago)

    That definitely should be packed within the symfony core !
    That's a great way to manage web assets.

    By the way, I really couldn't figure out how to pack a tinymce.
    Tinymce as its own file tree structure that does not seem compatible with sfDynamics.

    Any way to pack a whole folder with a file call ? That would be great !
    :)
  • lhotte (7 months ago)

    no message in the bottle

Symfony live 2009 - French conference

Good JavaScript development practices and sfDynamics

For french readers, here are François and Romain conference slides at symfony live 2009 (paris).