Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Tuesday, September 21, 2021
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Documentation  »  HTML  »  PHP expressions

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.


Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy