Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Adding Requirements::javascript to page.php (editing problem)

Go to End



Community Member, 20 Posts

28 January 2012 at 12:24pm

Hi everyone

I need to use javascript on silverstripe the. the code is as follows

<script src="" type="text/javascript"></script>

Looking through documentation it looks like I should be able to just add Requirements::javascript to mysite/code/page.php however when i open this file in note pad it has little squares subdividing text which I cannot reproduce on key board. Can anyone tell me what these are and how I put new one in after adding Requirements::javascript?