Development

/plugins/sfPropelTogglerPlugin/README

You must first sign up to be able to contribute.

root/plugins/sfPropelTogglerPlugin/README

Revision 18371, 1.2 kB (checked in by CharnaD, 4 years ago)

--

Line 
1 PropelToggler 1.0.0b   May 17, 2009
2 ===================================
3
4 This plugin shows an AJAX image link. On click it switches field in DB from 0 to 1, or vice versa. Image is also switched. So this is an easy way to organise switches for some kind dihotomic data.
5
6 Requirements
7 ------------
8 Tested on Symfony 1.2.3
9
10 Installation
11 ------------
12 Install plugin
13 (You can unpack it to plugins directory and rename the folder to sfPropelTogglerPlugin)
14
15 *$ php symfony plugin:publish-assets*
16
17 Make sure the folder sfPropelTogglerPlugin or symlink has been created. If not - create one and copy contents of "web" folder to it.
18
19 *$ php symfony cc*
20
21 Configuration
22 -------------
23 1. Enable the module in settings.yml (enabled_modules:      [default, sfPropelToggler])
24 2. Add use_helper('Toggler'); to your code, and then use
25 3. ``echo toggler(array('table' => '', 'field' => '', 'id' => '', 'state' => ''))``
26
27 Where table and field points to cell to be updated, id is its PK, state is its current state(0,1)
28
29   OR
30
31 ``echo toggler_object($object, $field);``
32
33 Where object is the Propel object and field is a field to switch.   
34
35 To Do
36 -----
37  
38 License
39 -------
40 LGPL 
41  
42 Author
43 ------
44 Viktoras Byazaras
45
46 Thanks to
47 ---------
48 YS.PRO
Note: See TracBrowser for help on using the browser.