Adding Javascript outside of the concrete folder

Permalink
I have a "controller" in my controllers folder (outside of concrete5 folder. Just the normal, default empty controllers folder).

When I include this in my view method:

$this->addHeaderItem(Loader::helper('html')->javascript('event.js'));


My event.js file is linked to be inside my "concrete5" folder (which I do not want).

Is there a way to make it inside of my "view" folder, the empty view folder?

I tried

$this->addHeaderItem(Loader::helper('html')->javascript('../view/event.js'));


but this links it

concrete/../view/event.js


Or rather ... concrete/view/event.js

 
JohntheFish replied on at Permalink Best Answer Reply
JohntheFish
It should load your event.js if you put he file into the root level js folder
nicolechung replied on at Permalink Reply
Duh...thanks, works great!