I want to include the output of a php script into typoscript, using a lib-object... I miserably fail :)
I declare the lib-object like this:
TS:
includeLibs.bannerLib = fileadmin/banner/banner.php
lib.banner = USER
lib.banner{
    userFunc = user_banner->user_showBanner
}
Then I need to use a variable(?) to include this in the rest of the TS:
{f:cObject(typoscriptObjectPath:lib.banner)}
This is most likely where it fails. I'm not using fluid, but I guess the f:cObject refers to a fluid-template?
Here's the (very simple) php-script I'm using:
class user_banner{
    public $cObj;
    /**
     * Scans the files in the images folder
     * for images and returns it, if present
     */
    public function user_showBanner($content, $conf){
        $images = scandir('images');
        return implode(',', $images);
    }
}
What am I doing wrong??? I'm using Typo3 4.6.x
[EDIT]
The page was made by some T3 crack and the whole content is wrapped into some lib-object and then rendered with some kind of lib (I guess). Here's what it looks like (partly):
lib{
        markupBodyColumns {
        1 >
        2 {
            value (
            <div id="col2" class="col">
            //here I try to insert my banner 
            <span class="bannerClass">{$lib.banner}</span>
                <div class="pageTitle">
                    {renderLib:markupBodyPageTitle}
                </div>
                <div class="contentWraper">
                    <div class="content">
                        {renderLib:markupBody}
                    </div>
                    {renderLib:markupFooter}
                </div>
            </div>
            )
        }
}
[EDIT 2]
Ok, it's driving me nuts... it really does...
First correction: I'm using Typo3 4.6.x not as stated first 4.7.x
I try to include the userFunc in typoscript, but it refuses to spit out anything. The PHP-Function (class) from above remains the same. The function within the class isn't called at all.
In typoscript I tried:
1st attempt:
includeLibs.user_banner = fileadmin/banner/user_banner.php
lib.myBanner = USER_INT
lib.myBanner{
    userFunc = user_banner->user_showBanner
}
page.100000 < lib.myBanner
No output whatsoever
2nd attempt:
page = PAGE
page.200000 = USER_INT
page.200000.userFunc = user_banner->user_showBanner
again - not output...
What on earth am I doing wrong???