This topic is locked

automatic include standard code into the pre-defined events

8/13/2014 4:57:21 AM
PHPRunner General questions
DanDooPur author

Hi. Is there any way to automatic include standard code into the pre-defined events?
The code looks much like
function BeforeAdd($values,$message,$inline,$pageObject)

{

$beread = true;

include_once "../../lib/beread.php";

return $beread;

}
and is common for all my applications. I have to copy and paste this fragment in the same event for al tables. I hope that there is an way to let phprunner include this code when adding a table to the project. Now I have to to it manually for each table.
I know I am lazy, but it is also handy for maintenance and future development.
Many thanks in advance.