Vegetable rookie Zend Framework 2 not fully learning Graffiti (iii)--Example function settings
This is the third piece of graffiti, the main introduction of the ZF official website tutorial on some of the database aspects involved in the settings.
The official website of the tutorial when building a record directory system, including album list, add, delete, change the record information.
Note: Before you begin the tutorial, make sure that:
1. Has the Mod_rewrite function been turned on?
2. Whether it has been supported. htaccess
Otherwise you will not be able to access any page other than the homepage
First, the system function settings
| Page name |
Page Function Description |
| Album list (list of albums) |
Displays a list of all existing albums, along with links to edit, delete, and create new records |
| Adding a new album (Add new album) |
This page provides a form to add a new record |
| Editing a record (edit album) |
This page provides a form to edit existing record information |
| Delete a record (delete album) |
This page will confirm and delete the album information we need to delete. |
Second, the database settings
We need to store the data in the database, we just have to build a table of data that consists of the following fields
| Field name |
Field type |
Whether it can be null |
Description |
| Id |
Integer |
No |
Primary key, auto-increment |
| Artist |
varchar (100) |
No |
|
| Title |
varchar (100) |
No |
|
To be Continued ... Thank you
Vegetable rookie Zend Framework 2 not fully learning Graffiti (iii)--Example function settings