MGP wrote
> file_exists(BASE_PATH . '/template/default/example.phtml') > return true
> and physically is there.
> Thats why i dont see whats wrong..

Try this code with a use of TemplatePathResolver, hope it helps:

class Module
{
    // ...

    public function init(ModuleManager $moduleManager)
    {
        $sharedEvents =
$moduleManager->getEventManager()->getSharedManager();
        $sharedEvents->attach(__NAMESPACE__, 'dispatch', function($e) {
            $serviceManager = $e->getApplication()->getServiceManager();
            $templatePathResolver =
$serviceManager->get('Zend\View\Resolver\TemplatePathStack');
            $templatePathResolver->setPaths(array(__DIR__ . '/view/blue'));
// here is your skin name

        }, 100);
    }
} 



-----
Cheers,
--
Luke Mierzwa
--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/bootstrap-event-to-change-template-tp4657144p4657171.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to