ConnectorSecurity::$security_key

when I add this line after include part in above of my code before:

ConnectorSecurity::$security_key = true;
$list = new OptionsConnector($res, $dbtype);
$list->render_table("name of table","typeid","typeid(value),name(label)");
$scheduler = new schedulerConnector($res, $dbtype);
$scheduler->set_options("type", $list);

I get this error in update or delete or … from db :

undifiend index:dhx_security

please help me.

Please be sure to add the “ConnectorSecurity::$security_key = true;” line before any connector initialization.

This must work in the next way - when component loads data from client side it also gets the session key, that will be validated during data saving. So you need to use connector for both loading and saving.

If issue still occurs - please share info about used version of dhtmlxScheduler