Hi,
I’m trying to customize the CRUD operation, after the model from here:
docs.dhtmlx.com/doku.php?id=dhtm … erver-side
So I have in php file:
$connector = new GridConnector($mysql_db);
$connector->configure(“acl_role”, “id”, “name”);
$connector->useModel(new roleModel());
$connector->render();
In roleModel for now I have only:
class roleModel
{
//function get($request)
//{
//}
function update($action)
{
//call $action->success(); or $action->invalid(); to mark operation as completed or invalid
}
function insert($action)
{
//call $action->success(); or $action->invalid(); to mark operation as completed or invalid
}
function delete($action)
{
//call $action->success(); or $action->invalid(); to mark operation as completed or invalid
}
}
I commented roleModel->get() method because in the documentation said that if we skip one method, the connector will try to generate its own version of logic.
-
What I have to write in get() method, so connector to generate its own version of logic?
-
Can you give me an example of a personalize get() method, please?