Forum

Site Core Functions

The controller has 2 functions:

  1. save()
  2. cancel()

Other functions to overwrite

  • pre_save()
  • post_save()

save()

  1. Checks token
  2. Gets post data
  3. Calls pre_save function
  4. Calls admin model to save record
  5. Calls post_save function
  6. Handles custom message and redirect

The model has 5 functions:

  1. getForm() - Get form and optionally load item
  2. getItem() - Get item and optionally merge component and item parameters
  3. createQuery() - Create query to fetch record from database (overwrite if required)
  4. notify_email() - Send email
  5. getConfig() - Returns array

Login to reply