Hi Guys,
I would like to use external library wrote by me.
Could you please help to include it?
class is simple, with constructor:
class MyClass {
public $something;
function __contruct($var) {
$this->something = $var;
}
function setSomething() {
return $this->something;
}
}
I would like to use it in Form’s AjaxEvent:
AjaxEvent -> field_onChange
$c = new MyClass("123");
{field} = $c->setSomething;
When I trying to run Form, i have an error:
Parse error: syntax error, unexpected ‘$c’ (T_VARIABLE) in C:\Program Files\NetMake… (long path to Form.apl.php)
What I do:
- SC8 > Tools > Libraries > i added MyClass.class.php in “Public”
- I assigned MyClass.class.php in Form > Programming > Libraries
but propably something is wrong, maybe I don’t understand how to do it correctly.
Please help.
Thank you,
daretzki (Darek)