GoLang Yaf_View_Simple::__set

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



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

PHP Yaf_View_Simple::__set

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

Yaf_View_Simple::__set

(Yaf >=1.0.0)

Yaf_View_Simple::__setSet value to engine

Description

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

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

Parameters

name

A string value name.

value

Mixed value.

Return Values

Examples

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");
    
}
?>

See Also