Kohana_Twig::set PHP Метод

set() публичный Метод

This value can be accessed as $foo within the view $view->set('foo', 'my value'); You can also use an array to set several values at once: Create the values $food and $beverage in the view $view->set(array('food' => 'bread', 'beverage' => 'water'));
public set ( $key, $value = NULL ) : View
Результат View
    public function set($key, $value = NULL)
    {
        if (is_array($key)) {
            foreach ($key as $name => $value) {
                $this->_data[$name] = $value;
            }
        } else {
            $this->_data[$key] = $value;
        }
        return $this;
    }