mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 22:39:52 +08:00
Merge pull request #301 from rinatio/view-begin-content-docs
View begin content docs
This commit is contained in:
@@ -391,10 +391,10 @@ class View extends Component
|
||||
/**
|
||||
* Begins the rendering of content that is to be decorated by the specified view.
|
||||
* This method can be used to implement nested layout. For example, a layout can be embedded
|
||||
* in another layout file specified as '@app/view/layouts/base' like the following:
|
||||
* in another layout file specified as '@app/view/layouts/base.php' like the following:
|
||||
*
|
||||
* ~~~
|
||||
* <?php $this->beginContent('@app/view/layouts/base'); ?>
|
||||
* <?php $this->beginContent('@app/view/layouts/base.php'); ?>
|
||||
* ...layout content here...
|
||||
* <?php $this->endContent(); ?>
|
||||
* ~~~
|
||||
|
||||
Reference in New Issue
Block a user