I just asked two pro level PHP developers I used to work with and they both 
said there is no automatic way of including a file. Only way is to have an 
explicit include call.

-----Original Message-----
From: Tom King [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 02, 2007 5:36 AM
To: CF-Talk
Subject: OT: php equivalent of application.cfc

Hi All,

Sorry for the OT:

I'm new to PHP, and am trying to find out if there is the equivalent of 
application.cfc onrequest() function:

I.e, I want to be able to do this, without having to put the includes in every 
file....:

<cffunction name="onrequest">
<cfargument name="targetpage'' required="yes"> <cfinclude 
template="header.html"> <cfinclude template="#targetpage#> <cfinclude 
template="footer.html"> </cffunction>

Help?

Many thanks
T



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271304
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to