Yaf_View_Simple::clear

(Yaf >=2.2.0)

Yaf_View_Simple::clearClear Assigned values

Descrierea

public Yaf_View_Simple::clear ([ string $name ] ) : bool

clear assigned variable

Parametri

name

assigned variable name

if empty, will clear all assigned variables

Valorile întoarse

Exemple

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
    
}
?>

A se vedea și