Knitter/aventura-no-rato — Issue #2: Implement View::registerScript
Author: Knitter
Created: 2011-10-11 12:30:29+00:00
State: open

The registerScript method receives a JS script file name or JS code and an optional position. The method will store the script file name or code in an array that will latter be used while parsing the layout file.

The position can be one of: POS_INIT (1), POS_HEAD (2), POS_END (3). These are constants of the class View with the default being POS_HEAD. They specify where, in the HTML page, is the script to be placed.