O'Reilly logo

Web Application Development with Yii 2 and PHP by Jeffrey Winesett, Mark Safronov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the index page for customers

We are now ready to create the interface we spoke about at the start of this chapter.

We will leave our UI from Chapter 2, Making a Custom Application with Yii 2, and generate the CRUD for CustomerRecord directly this time.

Use the following configuration for the CRUD Generator:

  • Model Class: app\models\customer\CustomerRecord
  • Search Model Class: app\models\customer\CustomerRecordSearch
  • Controller Class: app\controllers\CustomerRecordsController

Note the list of files it will generate for us:

Creating the index page for customers

The controller named CustomerRecordsController has a folder inside views named customer-records. Just to remind ourselves: the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required