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:
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
but this links it
Or rather ... concrete/view/event.js
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