base\View renderDynamic()

renderDynamic() public method

Renders dynamic content returned by the given PHP statements.

This method is mainly used together with content caching (fragment caching and page caching) when some portions of the content (called dynamic content) should not be cached. The dynamic content must be returned by some PHP statements.

public string renderDynamic ( $statements )
$statements string

The PHP statements for generating the dynamic content.

return string

The placeholder of the dynamic content, or the dynamic content if there is no active content cache currently.

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

Please login to continue.