PHP 8.4.0 RC4 available for testing

Yaf_View_Simple::__set

(Yaf >=1.0.0)

Yaf_View_Simple::__setSet value to engine

Açıklama

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

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

Bağımsız Değişkenler

name

A string value name.

value

Mixed value.

Dönen Değerler

Örnekler

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

Ayrıca Bakınız

add a note

User Contributed Notes

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