registerArgument('i', 'integer', "Low limit", true); $this->registerArgument('j', 'integer', "High limit", true); } /** * -- This method is expected by Fluid -- * Renders the content as html * * @param array $arguments * @param Closure $renderChildrenClosure * @param RenderingContextInterface $renderingContext * @return string|null */ public static function renderStatic( array $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext ) { $i = $arguments['i']; $j = $arguments['j']; $array = []; for($x=$i;$x<=$j;$x++) { $array[] = $x; } return $array; } }