CakePHP once again: scripts_for_layout from Element

I thought this was worth mentioning:

  • using inline=false from an element will probably not work :) since…‘this’!

So, echo $javascritpt->link(‘file.js’) FTW! :)

Spread the word...
  • Twitter
  • Facebook
  • del.icio.us
  • Google Bookmarks
  • StumbleUpon
  • Digg

Post a Comment

Your email is never published nor shared. Required fields are marked *

-->

Page optimized by WP Minify WordPress Plugin

Miscellaneous is Digg proof thanks to caching by WP Super Cache