@@ -85,9 +85,8 @@ Next, click on the "Preview" button. You will see a list of files to be generate
...
@@ -85,9 +85,8 @@ Next, click on the "Preview" button. You will see a list of files to be generate
[[NEED THE IMAGE HERE]]
[[NEED THE IMAGE HERE]]
Make sure you have checked the overwrite checkboxes for both `controllers/CountryController.php` and
If you previously created the `controllers/CountryController.php` and
`views/country/index.php` files. This is needed because you have already created these files
`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.)
in the previous section and you want to have them overwritten to have full CRUD support.
Trying it Out <a name="trying-it-out"></a>
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:
...
@@ -99,18 +98,18 @@ To see how it works, use your browser to access the following URL:
http://hostname/index.php?r=country/index
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.
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.
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 create a new country.
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)
![Data Grid of Countries](images/start-gii-country-grid.png)
![Updating a Country](images/start-gii-country-update.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,
The following is the list of the files generated by Gii, in case you want to investigate how these features are implemented,
or if you want to customize them.
or to customize them:
* Controller: `controllers/CountryController.php`
* Controller: `controllers/CountryController.php`
* Models: `models/Country.php` and `models/CountrySearch.php`
* Models: `models/Country.php` and `models/CountrySearch.php`
...
@@ -124,5 +123,5 @@ or if you want to customize them.
...
@@ -124,5 +123,5 @@ or if you want to customize them.
Summary <a name="summary"></a>
Summary <a name="summary"></a>
-------
-------
In this section, you have learned how to use Gii to generate the code that implements a complete
In this section, you have learned how to use Gii to generate the code that implements complete
set of CRUD features regarding a database table.
CRUD functionality for content stored in a database table.