Understand Controller and View

0
487
views

We will change the text in index.

Update code in views/site/index.php

Try access http://localhost/yii2tutorial/basic/web/.

Update code and add new method in controllers/SiteController.php

Create new file hello.php in views/site/

Try to access http://localhost/yii2tutorial/basic/web/index.php?r=site%2Fhello

Reference :
https://github.com/redzjovi/yii2tutorial/commit/edc5c442c7e80fcba2a64567827ee3de2d697071

Previous articleYii 2 Tutorial
Next articleUnderstand Forms
SHARE

LEAVE A REPLY

Please enter your name here
Please enter your comment!