ipl: add Html::sprintf() helper method
This commit is contained in:
parent
2d802128ac
commit
3f03fe8555
|
@ -248,6 +248,14 @@ class Html implements ValidHtml
|
|||
return $this->renderError($e);
|
||||
}
|
||||
}
|
||||
|
||||
public static function sprintf($string)
|
||||
{
|
||||
$args = func_get_args();
|
||||
array_shift($args);
|
||||
return new FormattedString($string, $args);
|
||||
}
|
||||
|
||||
private function reIndexContent()
|
||||
{
|
||||
$this->contentIndex = [];
|
||||
|
|
Loading…
Reference in New Issue