[TYPO3-english] passing TScript Var to PHP

Peter Russ "peter,russ" at 4many.net
Fri Jan 9 21:02:37 CET 2009


--- Original Nachricht ---
Absender:   La Farge Douglas
Datum:       09.01.2009 20:51:
> I have the following setup in a template for a set of pages:
> 
> includeLibs.notification = fileadmin/sap_resource_notification.php
> page.1000 = USER_INT
> page.1000.userFunc = user_resource_notification->notify
> 
> 
> What I'd like to be able to do is pass a variable from the TScript 
> constants to the PHP script via the above call.
> 
> so in Constants:
> 
> url = http://foo.com
> 
> 
> in Setup (I realize this isn't proper syntax):
> 
> includeLibs.notification = fileadmin/php/resource_notification.php
> page.1000 = USER_INT
> page.1000.userFunc = user_resource_notification->notify({$url})
> 
> in PHP:
> 
> $url = 'url passed in from TScript setup'.
> 
> 
> IS anything like this possible?  

Yes ist is.

>Is there another way to do this?
> 
No, it isn't.

Check TSRef for that. Everything is in there and works like a charme.
Just a hint: everyhing you add to userFunc will be passed as conf to 
your function. Got it?
userFunc {
	url =
}

;-)

Regs. Peter.

-- 
Fiat lux!
Docendo discimus.
_____________________________
4Many� Services
XING:	https://www.xing.com/go/invita/360052
	http://www.xing.com/go/privatemessage/Peter_Russ


More information about the TYPO3-english mailing list