HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
AddJsFile() with no version arg
ddumont
✭✭
Is there a way to use the AddJsFile() method of the controller class and have it not append the vanilla version to the script url as a url arg?
There was an error rendering this rich post.
Tagged:
0
Best Answer
-
ddumont ✭✭
// Normally one would use ->AddJsFile or ->Head->AddScript,
// but these insert a version arg in the url that might make the request invalid.
$Sender->Head->AddTag('script', array(
// This last FALSE is the important bit
'src' => Asset('http://script.file.here.js"), FALSE, FALSE),
'type' => 'text/javascript')
);There was an error rendering this rich post.
0
Answers
There was an error rendering this rich post.
There was an error rendering this rich post.
Asset()
call around full urls.There was an error rendering this rich post.