Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Utorok, 24. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  More than one trigger in the same category?

phpMyEdit Configuration     More than one trigger in the same category?
Odoslať novú tému   Odpovedať na tému    
 
jtzako     Založený: 12.01.2017   Príspevky: 16  
Príspevok Zaslal: 2017-01-24 18:04
Návrat hore  Odpovedať s citátom     

Can I have more than one trigger of the same type?

$opts['triggers']['insert']['after'] = 'triggers/pm.TIA.inc'; // After requesting save or more in the add/copy page

I tried to have two 'insert after' (TIA) but only one was being run.

If I combined the php code into one file they both worked fine.

I'd prefer to have them separate for keeping it clean and easier to manage.

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2017-01-26 02:13
Návrat hore  Odpovedať s citátom     

I don't think the class file will recognize multiple trigger files. Thus the last configured one is probably the one being run. Try creating a new trigger which simply includes / requires the two files you want to run.

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov