Difference between #6 and #7 of
Understanding the view rendering flow

Revision #7 has been created by dckurushin on Oct 7, 2011, 2:26:25 PM with the memo:

« previous (#6) next (#8) »


Title unchanged

Understanding the view rendering flow

Category unchanged


Yii version unchanged

Tags unchanged

layouts, views, render, renderPartial, variables, beginContent

Content changed

as we saw, the contact.php is rendered before the layout, so every field( aka class parameters), you change from the view file (contact.php) will effect the layout because it rendered after...

#### And the main confusion:
**6)** what is called before what? what the heck is going on there ? ;-)
<center> **contact.php (passed as content)-> column1.php (passed as content)-> main.php**
That's it, now you pro in layouts ;-)
Actually before writing this tutorial I was more in the "rules follower" group ...
<img src="http://i30.fastpic.ru/big/2011/1007/21/6c07cda81e332dba19bd59a812abc121.png" width="750"/></center>
That's it, now you pro in layouts ;-)
55 1
Viewed: 207 140 times
Version: 1.1
Category: FAQs
Written by: dckurushin
Last updated by: Jorgee
Created on: Oct 7, 2011
Last updated: 5 years ago
Update Article


View all history