by admin | Apr 11, 2023 | Blog
In ColdFusion, you can get the protocol from a URL using the getPageContext().getRequest().getScheme() method. This method returns the scheme (i.e., the protocol) used for the request, such as “http” or “https”. Here is an example: <cfset...
by admin | Feb 24, 2023 | Blog
In ColdBox, you can include one view inside another view using the renderView() method or the includeView() method. Here is an example of how to use renderView() to include a view inside another view: <!— parentView.cfm —> <cfoutput> <h1>Parent...
by admin | Feb 20, 2023 | Blog
If you are concerned that your systems may have been affected by the Log4j vulnerability, there are some steps you can take to check if you have been attacked: Check for Log4j in your environment: If you are using Log4j in your environment, check the version of Log4j...
by admin | Feb 11, 2023 | Blog
Here’s an example of how you can send an SMS using Twilio and ColdFusion: <cfset accountSid = “Your Twilio Account SID”> <cfset authToken = “Your Twilio Auth Token”> <cfset twilioNumber = “Your Twilio Phone Number”>...
by admin | Feb 10, 2023 | Blog
In ColdFusion, loops are a way to repeat a block of code multiple times. There are several types of loops available in ColdFusion, each with a slightly different syntax and use case. The most common loops in ColdFusion are: cfif: This is a conditional loop that...