[TYPO3-dev] includeLibs user_isMobile problem
Fernando Arconada
falcifer2001 at yahoo.es
Mon Jul 13 09:42:17 CEST 2009
is_file() returns OK
but there isnt in get_included_files()
t3lib_matchconditon ... is called before the includes with pagegen
El Sat, 11 Jul 2009 11:35:26 +0200, Francois Suter escribió:
> Hi,
>
>> while(list(,$temp_file)=each($temp_incFiles)) {
>> include_once('./'.$temp_file);
>> t3lib_div::debug('./'.$temp_file); echo "<br>"; }
>>
>> My lib is in the $temp_incFiles but isnt included
>>
>> any ideas? why a "while" instead a "foreach"?
>
> Is the path to your file built correctly? Can you test with is_file()
> rather than just doing a debug()?
>
> The while loop is old-style coding. Whenever we have the opportunity to
> clean up the source code, we replace these with foreach constructs, but
> there's a lot of legacy code out there ;-)
>
> Cheers
More information about the TYPO3-dev
mailing list