Check documentation for the latest version of dhtmlxSuite Step 3. Create a Model DHTMLX Docs

Step 3. Create a Model

To access the data we need to specify the appropriate model class.

To know more about using models, read the Models article from the framework documentation.

To create a model:
  1. Create a new file with the name "event.php " in the "Model " folder.
  2. Open the "event.php " file and add the following code there:

    "Model/event.php" file

    <?php
    class Event extends AppModel
    {
          var $name = 'Event';
          var $primaryKey = 'event_id';
    }
Back to top