- Basic Concepts
- Processing user interactions
- Nesting leaves
- Data Binding
- Custard Templates
- Building a blog
- View Bridges
- Control Components
- What is a control?
- Common controls
- Text Controls
- Selection Controls
- The selection control pattern
- File Uploads
- Building your own control
- Application Components
- What is an application component?
- Search Panel
- Advanced Topics
- View Indexes
Because each leaf set contains at least three classes (four if using a view bridge) it can introduce some overhead each time you need to make a new interface element.
To make this process faster Leaf comes with a Custard command that can auto generate the files for you.
You must have included the Leaf module as a dependency in
getModules() of your
Application class. This is often overlooked and Rhubarb needs to have Leaf module registered.
You must also know the path to the custard binary. This can usually be found at vendor/bin/custard however your composer setup may have moved this. Check your composer.json and look for "bin-dir".
Creating a Leaf class set
Simply enter your terminal and navigate to the folder you want to create the Leaf set in.
Then invoke the leaf:create-leaf custard command:
And follow the prompts to name the leaf.