Re: Getting Context Path in Usecase
Andreas Hartmann <[email protected]>
| Newsgroups | gmane.comp.cms.lenya.user |
|---|---|
| Message-ID | <[email protected]> |
Am 23.03.10 11:12, schrieb sac sha:
> I have a custom usecase in lenya global modules. I want to access
> context path in prepareView() method of that so that I can locate an
> xml file starting from context root.
Did you try to use the fallback:/ protocol?
myXmlSource =
resolver.resolveURI("fallback://lenya/modules/mymodule/resources/foo.xml");
Best regards,
Andreas
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01