Commit 4433a67f by Qiang Xue

Added `yii\web\View::clear()`

parent a78fb85d
...@@ -197,6 +197,14 @@ class View extends \yii\base\View ...@@ -197,6 +197,14 @@ class View extends \yii\base\View
self::PH_BODY_END => $this->renderBodyEndHtml($ajaxMode), self::PH_BODY_END => $this->renderBodyEndHtml($ajaxMode),
]); ]);
$this->clear();
}
/**
* Clears up the registered meta tags, link tags, css/js scripts and files.
*/
public function clear()
{
$this->metaTags = null; $this->metaTags = null;
$this->linkTags = null; $this->linkTags = null;
$this->css = null; $this->css = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment