Basecoat\View::add PHP Method

add() public method

Add content under the namespace By default append to any existing data item with same namespace
public add ( String $name, Mixed $content, boolean $append = true )
$name String namespace to add content under
$content Mixed content to any under the namespace, can be any data structure
$append boolean whether or not to append the content to the namespace if namespace already exists
    public function add($name, $content, $append = true)
    {
        if (isset($this->data[$name]) && $append) {
            $this->data[$name] .= $content;
        } else {
            $this->data[$name] = $content;
        }
        $this->{$name} = $this->data[$name];
    }