(Yaf >=2.2.0)
Yaf_View_Simple::clear — Clear Assigned values
public Yaf_View_Simple::clear ([ string $name ] ) : bool
clear assigned variable
name
assigned variable name
if empty, will clear all assigned variables
Example #1 Yaf_View_Simple::clear()example
<?php class IndexController extends Yaf_Controller_Abstract { public function indexAction() { $this->getView()->clear("foo")->clear("bar"); // clear "foo" and "bar" $this->_view->clear(); //clear all assigned variables } ?>
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/yaf-view-simple.clear.php