tags:

views:

60

answers:

0

Imagine the following code:

$view->addScriptPath('/path/to/base/scripts/');
$view->addScriptPath('/path/to/overload/scripts/');

With both paths containing the file index/index.phtml

/path/to/overload/scripts/index/index.phtml:

<p>Some paragraph.</p>

Now I want /path/to/overload/scripts/index/index.phtml to overload the file above with the possibility to render it's parent.

For example (/path/to/overload/scripts/index/index.phtml):

<?= $this->render('index/index.phtml') ?>
<p>Another paragraph</p>

This now (obviously) results in a infinite loop. But it's just to show what I'm trying to achief.