# controller\_test\_helloworld

Source: https://zotonic.com/docs/2533/controller_test_helloworld

URI: https://zotonic.com/id/2533

Language: en



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.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2533?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2533?language=en>)
