GoLang Yaf_View_Simple::clear

request it (311)
GoLang replacement for PHP's Yaf_View_Simple::clear [edit | history]



Do you know a GoLang replacement for PHP's Yaf_View_Simple::clear? Write it!

PHP Yaf_View_Simple::clear

PHP original manual for Yaf_View_Simple::clear [ show | php.net ]

Yaf_View_Simple::clear

(Yaf >=2.2.0)

Yaf_View_Simple::clearClear Assigned values

Description

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

clear assigned variable

Parameters

name

assigned variable name

if empty, will clear all assigned variables

Return Values

Examples

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

See Also