Add namespace.
This commit is contained in:
27
View/Helpers/HeadViewHelper.php
Normal file
27
View/Helpers/HeadViewHelper.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php namespace Majestic\View\Helpers;
|
||||
/**
|
||||
* @copyright NetMonsters <team@netmonsters.ru>
|
||||
* @link http://netmonsters.ru
|
||||
* @package Majestic
|
||||
* @subpackage View
|
||||
* @since 2010-03-16
|
||||
*/
|
||||
|
||||
class HeadViewHelper extends ViewHelper
|
||||
{
|
||||
|
||||
public function head($string = false)
|
||||
{
|
||||
if ($string) {
|
||||
$data = \Majestic\Registry::get(__CLASS__, array());
|
||||
$data[] = $string;
|
||||
\Majestic\Registry::set(__CLASS__, $data);
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
return implode("\n ", \Majestic\Registry::get(__CLASS__, array())) . "\n";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user