src/yimaTheme/Manager/DefaultListenerAggregate.php
public function onRenderAddPathStacks(MvcEvent $e)
    {
        $r = $e->getResult();
        if (!$r instanceof ViewModel)
            return; // we don't get Renderer Result
        // allow viewScripts to append with others on content variable
        else $r->setAppend(true);

        // add path stacks
        $viewTemplatePathStack = $this->sm->get('ViewTemplatePathStack');
        foreach (array_reverse($this->pathStacks) as $path) { // child top and final theme must list last
            $viewTemplatePathStack->addPath($path);
        }
    }
public function onRenderAddPathStacks(MvcEvent $e)
    {
        $r = $e->getResult();
        if (!$r instanceof ViewModel)
            return; // we don't get Renderer Result
        // allow viewScripts to append with others on content variable
        else $r->setAppend(true);

        // add path stacks
        $viewTemplatePathStack = $this->sm->get('ViewTemplatePathStack');
        foreach (array_reverse($this->pathStacks) as $path) { // child top and final theme must list last
            $viewTemplatePathStack->addPath($path);
        }
    }
MVC Event Listener

@param MvcEvent $e