yangruiyou85 / yiidoc

Automatically exported from code.google.com/p/yiidoc
0 stars 0 forks source link

additional info for Widget documentation #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Would it be necessary to add that (if this is not stated anywhere) : 

When in a view that is rendered by a Widget (components/views/myWidget.php
for instance) $this refers to the Widget rendering the view.

Just like in views for regular controllers this refers to the controller
rendering the view.

Please correct if I am wrong.

I found myself wondering about this so I report it here

thanks

Original issue reported on code.google.com by thomas.mery@gmail.com on 10 Apr 2009 at 1:12

GoogleCodeExporter commented 9 years ago

Original comment by alexander.makarow on 27 Dec 2009 at 9:58

GoogleCodeExporter commented 9 years ago

Original comment by qiang.xue on 17 Feb 2010 at 10:01