update : 2015.11.03
php.shukuma.com

검색:
 
 
Set value to engine

Yaf_View_Simple::__set

(Yaf >=1.0.0)

Yaf_View_Simple::__setSet value to engine

설명

public void Yaf_View_Simple::__set ( string $name , mixed $value )

This is a alternative and easier way to Yaf_View_Simple::assign().

인수

name

A string value name.

value

Mixed value.

반환값

예제

Example #1 Yaf_View_Simple::__set()example

<?php
class IndexController extends Yaf_Controller_Abstract {
    public function 
indexAction() {
        
$this->getView()->foo "bar"// same as assign("foo", "bar");
    
}
?>

참고