[TYPO3] problem with includeLibs!! (Cannot modifyheaderinformation)

John Kavanagh john.kavanagh at roomthree.com
Fri Feb 23 13:39:39 CET 2007


Hi Dmitry,

I tried a few php things and I managed to fix it!! 

Firstly I added the line: 

ob_start();

before the class. And then I changed the class name so that it was the
same as the file name with user_ in front of it. 

So now this is the content of my script, randomFunc.php:

<?
ob_start();
class user_randomFunc {
var $cObj;
function main($content,$conf)
{
		$content='hello';
		return $content;
	}
}
?>

And my typoscript is:

  
page.includeLibs.typo3scripts =
fileadmin/templates/scripts/randomFunc.php

lib.header = COA
lib.header.5  = USER
lib.header.5.userFunc =user_randomFunc->main
 
And now it works!! (and I am no longer suspicious of templavoila)

Thanks for your help!

John.


-----Original Message-----
From: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] On Behalf Of Dmitry
Dulepov
Sent: 23 February 2007 10:19
To: typo3-english at lists.netfielders.de
Subject: Re: [TYPO3] problem with includeLibs!! (Cannot
modifyheaderinformation)

Hi!

John Kavanagh wrote:
> I can't see any problems with the php and I'm still getting the error
> message! 
> Any more suggestions??

Does this error appear if you comment that includeLibs statement in TS?

-- 
Dmitry Dulepov

Web: http://typo3bloke.net/
Skype: callto:liels_bugs

"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english




More information about the TYPO3-english mailing list