Commit 4cdf19be by Larry Ullman

Finished editing

parent d24a0a71
......@@ -85,9 +85,8 @@ Next, click on the "Preview" button. You will see a list of files to be generate
[[NEED THE IMAGE HERE]]
Make sure you have checked the overwrite checkboxes for both `controllers/CountryController.php` and
`views/country/index.php` files. This is needed because you have already created these files
in the previous section and you want to have them overwritten to have full CRUD support.
If you previously created the `controllers/CountryController.php` and
`views/country/index.php` files (in the databases section of the guide), check the "overwrite" box to replace them. (The previous versions did not have full CRUD support.)
Trying it Out <a name="trying-it-out"></a>
......@@ -99,18 +98,18 @@ To see how it works, use your browser to access the following URL:
http://hostname/index.php?r=country/index
```
You will see a data grid showing the countries in the database table. You may sort the grid
You will see a data grid showing the countries from the database table. You may sort the grid,
or filter it by entering filter conditions in the column headers.
For each country displayed in the grid, you may choose to view its detail, update it or delete it.
You may also click on the "Create Country" button on top of the grid to create a new country.
For each country displayed in the grid, you may choose to view its details, update it, or delete it.
You may also click on the "Create Country" button on top of the grid to be provided with a form for creating a new country.
![Data Grid of Countries](images/start-gii-country-grid.png)
![Updating a Country](images/start-gii-country-update.png)
The following is the list of the generated files in case you want to dig out how these features are implemented,
or if you want to customize them.
The following is the list of the files generated by Gii, in case you want to investigate how these features are implemented,
or to customize them:
* Controller: `controllers/CountryController.php`
* Models: `models/Country.php` and `models/CountrySearch.php`
......@@ -124,5 +123,5 @@ or if you want to customize them.
Summary <a name="summary"></a>
-------
In this section, you have learned how to use Gii to generate the code that implements a complete
set of CRUD features regarding a database table.
In this section, you have learned how to use Gii to generate the code that implements complete
CRUD functionality for content stored in a database table.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment