Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Module ViewLocation
Hi!
I have my own application say "Page Core" which contains several modules.
E.g. one module to write out a small quote on each page (<-nice)
But when I try to load that module from e.g. the discussionscontroller in vanilla I get error that it couldn't find the viewlocation, which is pretty natural since it looked for it in the vanilla/views/modules.
Is this meant to be? How can I do sitewide modules? Or do I have to make them plugins?
I have my own application say "Page Core" which contains several modules.
E.g. one module to write out a small quote on each page (<-nice)
But when I try to load that module from e.g. the discussionscontroller in vanilla I get error that it couldn't find the viewlocation, which is pretty natural since it looked for it in the vanilla/views/modules.
Is this meant to be? How can I do sitewide modules? Or do I have to make them plugins?
0
Comments
This is a bit tricky to find but if you look really close you can find that if you do this in your module:
public function __construct(&$Sender = '') {
$this->_ApplicationFolder = 'YOUR_APP_NAME';
}
it will pass that name to the FetchViewLocaiton function
Cheers /Myself
Glad you managed to find the answer!
Vanilla Forums COO [GitHub, Twitter, About.me]