public function __construct()
{
}
public function index()
{
$this->admin();
}
public function data()
{
//Auto loaded
//$this->load->database();
$connector = new SchedulerConnector($this->db, "PHPCI");
$connector->configure(
"tasks",
"id",
"start_date, end_date, subject"
);
$connector->render();
}
public function beforeRender($action){
if ($action->get_id() == 10)
//marks an event if its id is 10
$action->set_userdata("color", "pink");
}
public function beforeProcessing($action){
//validation before saving
if ($action->get_value("event_name") == ""){
$action->invalid();//calls $action->invalid() if data fails validation
$action->set_response_attribute("details", "Empty data not allowed");
}
}
}[/code]
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan