im guessing its wrong to echo right, imean what actually does clientScript->register do? the docs are confusing, do i just call it and it does the magic
When you register the file to the clientScript, you’re adding it to the list of things which need to be published within the document. What kind of file you’re registering will determine where it’s placed in the document.