[TYPO3-core] RFC: #10069: Feature: Function for including extJS in Backend module
Steffen Kamper
info at sk-typo3.de
Tue Jan 13 15:57:32 CET 2009
Hi Masi,
thx for your suggestions. i posted now #10122 in this list. This is
condition for finish this RFC. After that one is solved i will make a
new version taking your suggestions into account.
vg Steffen
Martin Kutschker schrieb:
> Martin Kutschker schrieb:
>
>> BTW, what happens if two scripts call this function with different
>> options? I think that extJS will be included twice as the JS/CSS loader
>> APIs will treat the included files as different.
>
> So, loadJavascriptLib() is flawed. It takes only into account the
> filename/path, but not the intent.
>
> Maybe it could work like this:
>
> loadJavascriptLib($path, $name='').
>
> eg.
>
> $this->loadJavascriptLib(
> 'contrib/extjs/adapter/prototype/ext-prototype-adapter.js',
> 'extJS-adapter'
> );
>
> Masi
More information about the TYPO3-team-core
mailing list