View Single Post
  #4  
Old 08-21-2014, 02:21 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 22,927
IntoRain is on a distinguished road
Default

Just write the whole script inside Comment(), like

$document->add(new Comment("<script>your javascript here</script>")); (if you are on 1.3.4, do this on the view file and not in the controller file)
__________________


asp.net stole my soul.
Reply With Quote