Hi,
I've read other questions and replies about this error but I'm not able to find the right solution to me.
in actions>load I've added a PHP module with this function:
Thanks in advance for any help.
I've read other questions and replies about this error but I'm not able to find the right solution to me.
in actions>load I've added a PHP module with this function:
function test($field) {in my view I call it like:
if ($this->data("language")=="it-IT") {
echo $this->get("read_data1.db_test_it.', $field,'_it");}
else {
echo $this->get("read_data1.db_test_en.', $field,'_en");}
}
test("MyField");The idea was to read and print the field "read_data1.db_test_it.MyField_it" if the interface is in Italian and "read_data1.db_test_en.MyField_en" in any other case but when I load my form I have the error "0 USING $THIS WHEN NOT IN OBJECT CONTEXT" and I really can figure out what do I have to do to have it working.
Thanks in advance for any help.