src/Context.php
public function includes($view, $data = [])
    {    
        $factory = $this->getFactory();

        $filename = $factory->getFinder()->find($view);

        $context = new static($factory);

        $context->setSectionCollection($this->getSectionCollection());

        return new View($filename, $data, $context);
    }
public function includes($view, $data = [])
    {    
        $factory = $this->getFactory();

        $filename = $factory->getFinder()->find($view);

        $context = new static($factory);

        $context->setSectionCollection($this->getSectionCollection());

        return new View($filename, $data, $context);
    }
public function includes ( $ view , $ data = [ ] ) { $ factory = $ this -> getFactory ( ) ; $ filename = $ factory -> getFinder ( ) -> find ( $ view ) ; $ context = new static ( $ factory ) ; $ context -> setSectionCollection ( $ this -> getSectionCollection ( ) ) ; return new View ( $ filename , $ data , $ context ) ; }
Create a view in current context. Is useful for create view inside another.

@param string $view
@param array
Create a view in current context . Is useful for create view inside another .