EasyCFM.COM ColdFusion Forums / PHP to CFML / PHP require(); to CFML

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: PHP require(); to CFML

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts last

Zubrik
05-16-2006 @ 5:57 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 3
Joined: May 2006

Hello,

I have always used this in PHP:

<?php
     require ('header.php');
?>

Now I have to use it in a site with CFML, a language I don't know at all.

I'd like to know how I should do that.

Thank you very much.

This message was edited by Zubrik on 5-16-06 @ 5:57 AM

megan
05-16-2006 @ 8:10 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Moderator
Posts: 2398
Joined: Jan 2003

Then you're looking for the cfinclude tag:

<cfinclude template="header.cfm">

if you're just getting started with cf, then you will want to check out these docs as well as the Tutorials here at EasyCFm

regards, megan

We have art so that we shall not die of reality ~ Nietzsche

Zubrik
05-16-2006 @ 8:12 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 3
Joined: May 2006

Thanks a lot!

megan
05-16-2006 @ 8:17 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Moderator
Posts: 2398
Joined: Jan 2003

You're quite welcome Smile  ~megan

We have art so that we shall not die of reality ~ Nietzsche

JJfutbol
05-16-2006 @ 9:19 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Moderator
Posts: 1250
Joined: Nov 2004

Ah converting a PHP developer to CF, feels great. Smile  Our job is to easy.

----------------------------------------------------
Need FREE CF applications?? Then my site has it all, http://www.javier-julio.com/development/coldfusion/downloads/ In time I will be including many more free CF apps and ASP ones as well. Currently working on a fully accessible Forum, which validates as full CSS and XHTML 1.0 Strict. It will be open source and available to all.


Website Designed and Developed by Pablo Varando.