Sie sind auf Seite 1von 2

12/8/31

add_action | Grocery CRUD, a Codeigniter CRUD

143

Tweet

233

443

Examples

Documentation

Download

Forum

Donate

Documentation

API and Functions list

add_action

Quick Search...

add_action
vi adato(srn $ae, srn $mg_r ,srn $ikul,srn $s_ls , mxd$r_alak od d_cin tig lbl tig iaeul tig ln_r tig cscas ie ulclbc)

Add an action/operation to the list table. The way to do that its simple: 1. add the label of your subject, for example "Photo Gallery". 2. add an image url . Notice that in the flexigrid theme is a required field. 3. add your custom url. This url will be connected with the site_url function and the primary key. For example if you add 'my_controller/photo/' then it will transform to site_url('my_controller/photo/'.$primary_key_for_each_row) 4. add a CSS class. Remember that at the theme of datatables a CSS class includes images , for example : ui-icon-image, ui-icon-plus, e.t.c. 5. You can even add your own url callback. If you don't want the default transformation of the url, you can use this paremeter to add your own algorithm of the url transformation. Example:
fnto ofcsmngmn_ihatos) ucin fie_aaeetwt_cin( { $rd=nwgoeyCU(; cu e rcr_RD) $rd>e_hm(dttbe'; cu-sttee'aaals) $rd>e_al(ofcs) cu-sttbe'fie'; $rd>e_ujc(Ofc'; cu-stsbet'fie) $rd>eurdfed(ct'; cu-rqie_ils'iy) $rd>oun(ct''onr''hn'; cu-clms'iy,cuty,poe)

$rd>d_cin'oe,','eoato_oe,u-cnpu'; cu-adato(Mr' ' dm/cinmr''iio-ls) $rd>d_cin'hts,',',u-cniae,ra(ti,js__et); cu-adato(Poo' ' ''iio-mg'ary$hs'utats') $rd>d_cin'mly' 'tp/wwnletmltscmiae/ciee-xedbePooGleyRp-va2pg,'eoato_m cu-adato(Sies, ht:/w.uldepae.o/mgsAtvDnEtnal-ht-alr-i_ei_.n' dm/cins $upt=$rd>edr) otu cu-rne(; } $hs>eapeotu(otu) ti-_xml_upt$upt;

fnto js__et$rmr_e ,$o) ucin utats(piayky rw { rtr st_r(dm/cinato_hts)'cuty'$o-cuty eun ieul'eoato/cinpoo'.?onr=.rw>onr; }

And the result will be:


App You Site in 2 Minutes App You Site in 2 Minutes! FOR FREE

via Ad Packs

Note: The below example is an iframe so it might appeared with a scroll bar. If you like you can view the example on a new tab

www.grocerycrud.com/documentation/options_functions/add_action

1/2

12/8/31
Add Office

add_action | Grocery CRUD, a Codeigniter CRUD Export Print

Show 10 City Boston London (UK) NYC Paris

entries Country USA UK USA France USA Australia Japan Phone +1 215 837 0825 +44 20 7877 2041 +1 212 555 3000 +33 14 723 4404 +1 650 219 4782 +61 2 9264 2451 +81 33 224 5000
More More More More More More More Photos Photos Photos Photos Photos Photos Photos

Search: Actions
Smileys Smileys Smileys Smileys Smileys Smileys Smileys Edit Edit Edit Edit Edit Edit Edit Delete Delete Delete Delete Delete Delete Delete

San Francisco Sydney Tokyo

Displaying 1 to 7 of 7 items

First Previous 1 Next Last

Grocery CRUD is released with dual licensing, using the GPL v3 and the MIT license. Copyright John Skoumbourdis | www.web-and-development.com

www.grocerycrud.com/documentation/options_functions/add_action

2/2

Das könnte Ihnen auch gefallen