Development

dwPrototypeWindowPlugin

You must first sign up to be able to contribute.

dwPrototypeWindowPlugin =======================

Overview


The plugin provides windows and dialog boxes via the prototype library for the symfony php framework.

License


For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

Installation


  • *Install the plugin*

symfony plugin:install dwPrototypeWindowPlugin

  • *Clear you cache*

symfony cc

Using the plugin


<?php use_helper('Window'); ?>

<?php if(sfConfig::get('sf_debug')) { echo link_to_function('open js debug window', 'showDebug()'); } ?>

<?php echo link_to_prototype_window('Google', 'google', array('title' => 'Google', 'url' => 'http://google.com', 'width' => '520', 'height' => '350', 'center' => 'true', 'className' => 'alphacube'), array('absolute' => true)); ?>

<?php echo link_to_prototype_dialog('hello', 'hello world', 'alert', array('className' => 'alphacube')); ?>

Examples


Tickets

symfony 1.1

Download the file dwPrototypeWindowPluginSf1.1-1.0.0.tgz.

Put in the root directory of your project.

Installation:

symfony plugin:install dwPrototypeWindowPluginSf1.1-1.0.0.tgz 

Setup:

In the root directory.

cd web

ln -s ../plugins/dwPrototypeWindowPlugin/web/ dwPrototypeWindowPlugin

Attachments