Cakephpdocs 70

CategoryThe JavaScript Helper
Code ExamplesThis helper is used mainly to simplify coding JavaScript. To include this helper in the application, use this in controller (or app_controller globally): var $helpers = array('Javascript'); Functions in the JavaScript Helper Function Description ========= =========================== $javascript->afterRender() Callback for after rendering; writes cached events to the view or a temp file $javascript->blockEnd() Ends a block of JavaScript code $javascript->cacheEvents() Caches JavaScript events created with the event() function $javascript->codeBlock() Wraps JavaScript code with the