Compiler.php
protected function compileFor(Node $node)
    {

        $subject = $node->subject;
        $phtml = $this->createCode("for ({$subject}) {").$this->newLine();
        $phtml .= $this->compileChildren($node->children).$this->newLine();
        $phtml .= $this->indent().$this->createCode('}').$this->newLine();

        return $phtml;
    }
protected function compileFor(Node $node)
    {

        $subject = $node->subject;
        $phtml = $this->createCode("for ({$subject}) {").$this->newLine();
        $phtml .= $this->compileChildren($node->children).$this->newLine();
        $phtml .= $this->indent().$this->createCode('}').$this->newLine();

        return $phtml;
    }
protected function compileFor ( Node $ node ) { $ subject = $ node -> subject ; $ phtml = $ this -> createCode ( "for ({$subject}) {" ) . $ this -> newLine ( ) ; $ phtml .= $ this -> compileChildren ( $ node -> children ) . $ this -> newLine ( ) ; $ phtml .= $ this -> indent ( ) . $ this -> createCode ( '}' ) . $ this -> newLine ( ) ; return $ phtml ; }
Compiles a for-loop into PHTML.

@param Node $node the while-node to compile

@return string The compiled PHTML
Compiles a for - loop into PHTML .