The current TClientScriptManager::registerScriptFile() method is too strict,
and doesn't allow registration of script files when rendering has already begun
(eg. registration from ::render() methods). However, since <script> inclusions
are also emitted at the end of the rendering phase, registration in this phase
should be allowed too.
To correct the issue the
$this->checkIfNotInRender();
call in the TClientScriptManager::registerScriptFile() method should be removed.
Original issue reported on code.google.com by google...@pcforum.hu on 12 Feb 2012 at 8:08
Original issue reported on code.google.com by
google...@pcforum.hu
on 12 Feb 2012 at 8:08