Solar_View_Helper_Head::addMeta()

public Solar_View_Helper_Head Solar_View_Helper_Head::addMeta ( array $attribs )

Adds a <meta> tag.

Parameters

  • (array) $attribs: Attributes for the tag.

Returns

  • (Solar_View_Helper_Head)

Description

Adds a <meta> tag.

<?php
// inside a view:
$this->head()->addMeta(array(
    'foo' => 'bar',
    'baz' => 'dib',
));

// when $this->head()->fetch() is called, that will output a meta tag:
// <meta name="foo" bar="baz dib" />

See Also



Local