[TYPO3] Condition with userFunc doesn't work at all

Bas v.d. Wiel j.a.m.v.d.wiel at tue.nl
Mon Sep 15 14:27:04 CEST 2008


On Mon, 2008-09-15 at 15:19 +0300, Dmitry Dulepov [typo3] wrote:
> Hi!
> 
> Bas v.d. Wiel wrote:
> > Sadly, it still doesn't work. I put the php code into
> > fileadmin/user_popover.php as follows (for now):
> 
> If the advice after the next quotation does not help, check that file is loaded at all. Put a call to echo to the top of the file (echo 'aaa') and call a page with &no_cache=1. If you get your 'aaa', than at least file is included.

Apparently the file gets loaded. I get my 'aaaa' when I put an echo
statement outside any function or class context.

> 
> > [userFunc = user_popover->newVisitor()]
> 
> But firsts, remove the (). They should not be there. It should be:
> 
> [userFunc = user_popover->newVisitor]

That doesn't make any difference at all though... :-(

> 
> > PS. I tried page.includeLibs as well as just includeLibs, neither of
> > which works. I do see them appear in the object browser but apparently
> > that doesn't mean much.
> 
> They are equivalent (merged at some point in the code).



More information about the TYPO3-english mailing list