This topic is locked

PHP Code Snippets

12/23/2008 5:02:14 AM
PHPRunner General questions
M
marke author

Hi
I want to add some new function buttons to the List page and it looks as if the PHP code snippet option is the way to go. However I need to use a number of database fields and possibly session variables in the snippet function. How do I use the $params to access these items in the snippet.
If any documentation exists just point me at it - or perhaps a simple example of passing a database field into the snippet function using $params.
thanks
Mark

J
Jane 12/23/2008

Mark,
unfortunately it's impossible to pass parameters to the custom events.

In general you can select field value using following code:

global $xt;

$xt->xt_getvar("Field1_value");