FOF30\View\Compiler\Blade::compileExtends PHP Method

compileExtends() protected method

Compile the extends statements into valid PHP.
protected compileExtends ( string $expression ) : string
$expression string
return string
    protected function compileExtends($expression)
    {
        if (starts_with($expression, '(')) {
            $expression = substr($expression, 1, -1);
        }
        $data = "<?php echo \$this->loadAnyTemplate({$expression}); ?>";
        $this->footer[] = $data;
        return '';
    }