mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-25 11:10:36 +08:00
Added yii\base\Controller::renderContent()
This commit is contained in:
@@ -127,6 +127,8 @@ Within [controllers](structure-controllers.md), you may call the following contr
|
||||
and injects all registered JS/CSS scripts and files. It is usually used in response to AJAX Web requests.
|
||||
* [[yii\base\Controller::renderFile()|renderFile()]]: renders a view specified in terms of a view file path or
|
||||
[alias](concept-aliases.md).
|
||||
* [[yii\base\Controller::renderContent()|renderContent()]]: renders a static string by embedding it into
|
||||
the currently applicable [layout](#layouts). This method is available since version 2.0.1.
|
||||
|
||||
For example,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user