Latte\Macros\BlockMacros::initialize PHP 메소드

initialize() 공개 메소드

Initializes before template parsing.
public initialize ( ) : void
리턴 void
    public function initialize()
    {
        $this->namedBlocks = [];
        $this->blockTypes = [];
        $this->extends = NULL;
        $this->imports = [];
    }

Usage Example

예제 #1
0
 public function initialize()
 {
     parent::initialize();
     $this->redefinedBlocks = [];
 }