What we’ll cover
- What are controller actions, and how are they used?
- Create a controller action to render a DataObject
- Rendering a DataObject as a page
- Adding pseudo-page behaviour to a DataObject
How controller actions work
Up to this point in our project, for the most part, every page has been on a single URL, which that URL points to a single controller, which renders a single
$Layout template. However, if you think back to our lesson on forms, you may remember that we were able to extend the URL route for our controller in order to generate and render a form. We did this using a controller action. Forms are just one of many use cases for a controller action.
Using controller actions is simple...Read More