PHP 8.1.0 Beta 1 available for testing

Yaf_View_Simple::clear

(Yaf >=2.2.0)

Yaf_View_Simple::clearClear Assigned values

Açıklama

public Yaf_View_Simple::clear(string $name = ?): bool

clear assigned variable

Değiştirgeler

name

assigned variable name

if empty, will clear all assigned variables

Dönen Değerler

Örnekler

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

Ayrıca Bakınız

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top