4.9. PHP expressions

PHP feature allows user to display any HTML code in place of a value. Behavior is the same as in triggers.

If PHP option is set, a file of that name is included (and executed). All variables avaliable in the core class are available in the included PHP file.

Example 4-38. PHP execution file

<?php 
if ($this->operation == $this->labels['Add']) { 
   return 'add mode selected';
} else { 
   return '<img src="tt.png" alt="TT">';
}
?>
This option is indended for advanced usage. Together with pre and before triggers , it allows tweaking the core class without the need to hack it. To change input, use before triggers or ['sqlw'] option.


Bootstrap phpMyEdit PHP Form Generator