sfProtoculousPlugin - 1.0.2

Your name here

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source

sfProtoculousPlugin

Description

Since symfony 1.4 sfProtoculousPlugin was removed from core plugins. Still it can be installed as a separate plugin and used the same way as it was used before. If you need a simple way in creating Ajax effects with Prototype framework you need this plugin. It offers a set of Prototype helpers firstly created for Ruby-on-Rails and adapted by Fabien Potencier.

Installation

  • Install the plugin

    $ symfony plugin:install sfProtoculousPlugin
    
  • Publish assets

    $ symfony publish:assets        
    

Usage

For reference read Defenitive Guide to Symfony.

In order to use Prototype-based ajax helpers you need to add 'Javascript' helper into your template.

    [php]
    <?php use_helper('Javascript') ?>

It provides this functions:

  • link_to_remote
  • form_remote_tag
  • submit_to_remote
  • submit_image_to_remote
  • periodically_call_remote
  • remote_function
  • observe_field
  • observe_form
  • button_to_remote
  • draggable_element
  • drop_receiving_element
  • input_auto_complete_tag
  • input_in_place_editor_tag
  • sortable_element
  • visual_effect

All additional documentation can be found in the source code.