posted by aryo tejo w on September 6, 2016

Working with the framework, in the current web develop, should understand the concept of MVC. In this post, will sy tangent about the view. In the jni section, handle the look or layout of web design. Yii framework, has a plot in the view as follows.
1. Initially first, by default the web will access the index.php file located  in view/site/index.php
2. The default view yii, can be modified by converting the file into public variable $ layout declared in siteController
3. Suppose a public variable $layout="//layouts/coulumn2"
4. Please modif the coulumn2.php file that is on protected/view/layouts/
note the above script coulumn2.php
<?php $this->beginContent('//layouts/main'); ?>
5. You can add a Div or an additional tag. If you want a better view, then learn the themes with css bostraps
6. So on, when opening the module, then note the public variable $ layout that exist in each controller.

In summary, the View flow can be written Main.php ->coulumn2.php->controller->_form


Kevinzer says:
March 10, 2019 at 12:30 am
this artcle is good
Gregoryprime says:
February 26, 2019 at 05:05 am
Good article
Jeffreyrar says:
February 2, 2019 at 12:13 pm

Angelorish says:
January 20, 2019 at 11:01 pm
ok, good
EllRhycle says:
January 2, 2019 at 10:41 am

keep on coding

Leave a Comment

Fields with * are required.

Please enter the letters as they are shown in the image above.
Letters are not case-sensitive.