Answer the question
In order to leave comments, you need to log in
Yii 1.xx Controllers, layouts and widgets... Which project structure should I choose?
The question is quite general, but I need to figure it out, because I'm just starting to master Yii.
* * *
I made the following application structure. To begin with, the terms in which I think.
- The page area (pageAreaName) is a "named" point in the main site layout. For example title , menu , info , text , bottom .
- Site area (siteAreaName) is the name of the site section. In fact, this is the controller ID. For example main , guestBook , newsArchive .
There is a basic page layout. This is pure HTML, it only "marks" the page areas ( pageAreaName ) as a call to the special widget CDrawPageArea :
<!-- Виджет меню -->
<?php $this->widget('CDrawPageArea', array('params'=>array(
'pageAreaName'=>'menu',
'siteAreaName'=>Yii::app()->getController()->getId() ))); ?>
Answer the question
In order to leave comments, you need to log in
https://www.google.com/search?q=yii+boilerplate&gw...
more
specifically yiinitializr.2amigos.us
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question