This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} !^.*\.(bmp|css|gif|htc|html?|ico|jpe?g|js|pdf|png|swf|txt|xml)$ | |
RewriteRule ^(.*)$ index.cfm/$1 [NS] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteRule ^admin/(.*)$ index.cfm/admin:$1 [L] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
#Rewrite FW/1 Subsystem | |
RewriteRule ^admin/(.*)$ index.cfm/admin:$1 [L] | |
#Rewrite index.cfm | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} !^.*\.(bmp|css|gif|htc|html?|ico|jpe?g|js|pdf|png|swf|txt|xml)$ | |
RewriteRule ^(.*)$ index.cfm/$1 [NS] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteRule ^blog/.*$ blog/show/post/$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component extends="org.corfield.framework" | |
output="false" | |
{ | |
/* | |
...Some code... | |
*/ | |
VARIABLES.framework = { | |
routes = [ | |
{ "/section/:value" = "/section/item/parameter/:value" } //Example - "/blog/:post" = "/blog/show/post/:post" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component name="ImageBrowser" | |
output="false" | |
{ | |
remote array function list(required string dir = "") | |
output="false" | |
returnformat="JSON" | |
{ | |
var length = 0; | |
var path = var image = var folder = ""; | |
var result = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"image": "/image1_200x150.jpg", | |
"thumb": "/image1_thumb.jpg", | |
"folder": "Small" | |
}, | |
{ | |
"image": "/image2_200x150.jpg", | |
"thumb": "/image2_thumb.jpg", | |
"folder": "Large" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CKEDITOR.replace('textareaId', { | |
"extraPlugins": "imagebrowser", | |
"imageBrowser_listUrl": "/ImageBrowser.cfc?method=list&dir=/assets/images" | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
set = { | |
one : { | |
alphabet : "a", | |
maori : "tahi", | |
roman : "i", | |
ordinal : "first" | |
}, | |
two : { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
// Some dummy articles yay! | |
articles = [ | |
{title: "I Am a Title Perhaps", publishDate: createDate(2015, 11, 08)}, | |
{title: "I Am a Title As Well", publishDate: createDate(2014, 08, 15)}, | |
{title: "I Am a Title I Think", publishDate: createDate(2014, 09, 25)}, | |
{title: "I Am a Title", publishDate: createDate(2013, 04, 05)}, | |
{title: "I Am a Title Too", publishDate: createDate(2013, 05, 17)}, | |
{title: "I Am a Title Also", publishDate: createDate(2013, 07, 02)} | |
]; |
OlderNewer