In my JavaScript (using jQuery) there are a whole set of PHP variables to which I need access. While I\'ve got it working by just producing the JavaScript file as a view, an
You may consider registerScript. In my opinion, it is better since there is a param named $position, which can help you control the process output of render().