base\View beginContent()

beginContent() public method

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/views/layouts/base.php' like the following:

<?php $this->beginContent('@app/views/layouts/base.php'); ?>
//...layout content here...
<?php $this->endContent(); ?>

See also yii\widgets\ContentDecorator.

public yii\widgets\ContentDecorator beginContent ( $viewFile, $params = [] )
$viewFile string

The view file that will be used to decorate the content enclosed by this widget. This can be specified as either the view file path or path alias.

$params array

The variables (name => value) to be extracted and made available in the decorative view.

return yii\widgets\ContentDecorator

The ContentDecorator widget instance

doc_Yii
2016-10-30 16:52:31
Comments
Leave a Comment

Please login to continue.