Archive for the 'PHP' Category

Integrate Coldfusion in Joomla (PHP)

So I have a couple sites I manage with Joomla and recently needed to code a customized online membership form that would interact with PayPal. Because I know CFML much better than PHP, I wanted to code this portion with Coldfusion. The only trick was how does one get CFML to execute within a PHP template? Turns out it is easy with the Joomla “wrapper” feature.

The way it works is to first create your CFML templates. I did them without any extra formatting knowing they would be included withing an iframe generated by Joomla. Then, I just created a new menu item within Joomla that was of type “Wrapper”. One of the elements of such a menu item is called the, “Wrapper Link”. You just provide a fully qualified URL to your CFML template (could even reside on another server) and Joomla will process the request and pull in all it’s contents. It worked perfectly for me with the exception that I had to watch my margins carefully because you are limited in width to the size of the iframe available in Joomla. This will depend on the layout you use with Joomla of course. But there you go, no reason you must be limited to PHP, Perl, Coldfusion or any other scripting language for that matter. The working application can be seen here.