controller_test_helloworld

Example controller used by the Zotonic test sandbox.

It renders test_helloworld.tpl and demonstrates handling postbacks, form submissions, drag-and-drop events, sorting, updates, dialogs, alerts, and growl messages.

Handled events

  • show_confirm, show_alert, and confirm_ok demonstrate confirmation and alert actions.
  • show_growl and show_growl_stay demonstrate transient and persistent growl messages.
  • fill_content, insert_top, and insert_bottom demonstrate updating and inserting rendered content.
  • #drop{} and #drag{} report drag-and-drop interactions.
  • #sort{} reports the resulting item order.
  • #submit{} reads a validated email field and displays its value.

Edit on GitHub