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

SheriffenSheriffen
edited May 2010 in Vanilla 2.0 - 2.8
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?

Comments

  • Hello @Sheriffen and thanks for using vanilla!
    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
  • TimTim Vanilla Staff
    +1 for comic relief ;)

    Glad you managed to find the answer!

    Vanilla Forums COO [GitHub, Twitter, About.me]

Sign In or Register to comment.