downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Yaf_View_Simple::setScriptPath> <Yaf_View_Simple::render
[edit] Last updated: Fri, 07 Jun 2013

view this page in

Yaf_View_Simple::__set

(Yaf >=1.0.0)

Yaf_View_Simple::__set値をエンジンに設定する

説明

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

Yaf_View_Simple::assign() をもっと簡単にするもうひとつの方法です。

パラメータ

name

変数名。

value

変数の値。

返り値

例1 Yaf_View_Simple::__set() の例

<?php
class IndexController extends Yaf_Controller_Abstract {
    public function 
indexAction() {
        
$this->getView()->foo "bar"// assign("foo", "bar"); と同じ意味
    
}
?>

参考



add a note add a note User Contributed Notes Yaf_View_Simple::__set - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites