View Single Post
  #4 (permalink)  
Old 04-29-2008, 09:57 PM
Davidoff Davidoff is offline
Junior Member
 
Join Date: Oct 2007
Posts: 27
Default

Indeed, your javascript should be in a public directory, or people won't be able to access it.

There's a useful view helper for including scripts on demand called HeadScript.

You can add scripts in your view (or controller, of course) and then your layout or view script calls the helper to display them.
Reply With Quote