Go back to [[step_1_-_create_the_church_info_database|Step 1]]

Go to http://wmck.local/web/index.php?r=gii\\

Create the model for the ''main'' table. Then modify the ''models\Main.php'' file
<code php>
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'abbr' => 'Abbreviation',
            'title' => 'Page Title',
            'bannertitle' => 'Banner Title',
            'vision' => 'Our Vision',
            'themetitle' => 'Theme Title',
            'theme' => 'Theme',
            'fpbanner' => 'Front Page Banner',
            'email' => 'Email',
            'address' => 'Address',
            'phone' => 'Phone',
            'layleader' => 'Lay Leader',
            'lcecchairman' => 'LCEC Chairman',
            'churchmap' => 'Church map',
            'biggermap' => 'Bigger Church map',
            'gmapscreen' => 'Google Maps Screenshot',
            'goostreetview' => 'Google Streetview Link',
            'gps' => 'GPS',
            'calendar' => 'Calendar',
            'footer' => 'Footer',
        ];
    }
</code>
Create the model for the ''topbox'' table. Then modify the ''models\Topbox.php'' file
<code php>
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'box1title' => 'Box1 Title',
            'box1content' => 'Box1 Content',
            'box2title' => 'Box2 Title',
            'box2content' => 'Box2 Content',
            'box3title' => 'Box3 Title',
            'box3content' => 'Box3 Content',
        ];
    }
</code>

Create the model for the ''ministries'' table. Then modify the ''models\Ministries.php'' file
<code php>
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'day' => 'Day Name',
            'title' => 'Ministry',
            'content' => 'Additional Content',
            'starttime' => 'Start Time in HH:MM:SS',
            'endtime' => 'End Time in HH:MM:SS',
        ];
    }
</code>

Create the model for the ''upcoming'' events table. No need to modify the ''models\Upcoming.php'' file.

Go to the [[step_3_-_create_the_crud_for_the_church_info_database|Next step]]

Back to [[yii|Yii Main Index]]