Yet Another Framework Yaf_View_Simple::clear
(Yaf >=2.2.0)
Yaf_View_Simple::clear — 할당된 값 지우기
설명
public Yaf_View_Simple::clear(string $name
= ?): bool
할당 변수 지우기
매개변수
name
- 할당된 변수 이름
비어 있으면 할당된 모든 변수를 지웁니다.
반환 값
Examples
예제 #1 Yaf_View_Simple::clear() 예제
<?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
}
}
?>
기타
- Yaf_View_Simple::assignRef() - The assignRef purpose
- Yaf_View_Interface::assign() - Assign value to View engine
- Yaf_View_Simple::__set() - Set value to engine