Revision #3 was created by yiqing95 on Oct 26, 2012, 5:30:49 PM.
minor modify
Content
[...]
```
so you can see the "$this->menu " and "$this->breadcrumbs" are assigned in view files (create.php, index.php, admin.php ....) ;
in yii when some route be executed , lets say (default manner) : "user/create" , UserController::actionCreate function will be called , and in the actionCreate function it
will render the create.php view file and using some specified layout file . so the execution order will be : create.php(<<view file>>) ----> column2.php(<<layout file>>)----> main.php(<<layout file>>) . all these file can refer to "$this" variable , so you can pass variable by defining some public var in the "Controller" class . and give it some value in view file then fetch it in layouts file .
all above method may be the normal way :) ;
[...]
``` **
usage **
in you base controller :
[...]
that's all ! hope help some body ;
here are some topic about it:
[Yii - On what circumstances should we use clips? ](http://www.yiiframework.com/forum/index.php/topic/31889-yii-on-what-circumstances-should-we-use-clips/ "Yii - On what circumstances should we use clips? ")