Add Item Table
- Installation
- Help
- Learning Cmfive
- Introduction
- Creating A Config
- The Models Folder
- Install And Migrations
- Creating Index Action
- Creating Index Template
- Creating Item Action
- Add Item Table
- Edit Item Button
- Additional Configuration
Add Item Table
Adding The Item Table to The Index Template
Open templates/index.tpl.php and add the line echo $itemTable;
. Your templates/index.tpl.php file should now look like this:
<?php
echo Html::b("example-item/edit","Add new item");
echo $itemTable;
The item table is now visible on the index action. Use the add new item button to add a few more items to the table.
Now we need to get our item action buttons to work properly. We will do this in the Edit Item Button section.