| Index
» Projekty
» phpMyEdit
» Fórum
» I need help with pre trigger |
 |
mcozeti
Založený: 12.03.2007
Príspevky: 2
Zaslal: 2007-03-12 21:11
Návrat hore
Odpovedať s citátom
|
Just like documentacion says:
Example 3-21. Select triggers
// Before displaying the view page
$opts['triggers']['select']['pre'] = 'categories.TSP.inc';
// After canceling the view page
$opts['triggers']['select']['cancel'] = 'categories.TSC.inc';
I wrote a ['select']['pre'] triger in order to catch data just after have read it.
Question: Where data is? Are there any data model available? $oldvals and $newval are both null.
Thanks
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2007-03-13 11:08
Návrat hore
Odpovedať s citátom
|
they should be in $oldvals or $newvals.
|
derick
Založený: 23.08.2007
Príspevky: 4
Zaslal: 2007-08-26 19:43
Návrat hore
Odpovedať s citátom
|
Here is a sample code for an .inc file :
foreach($newvals as $key => $val){
echo 'Field : ' .$key . '->'. ' value : ' . $val . '<br>';
}
or
foreach($oldvals as $key => $val){
echo 'Field : ' .$key . '->'. ' value : ' . $val . '<br>';
}
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|