我正在尝试为 FW/1 创建一个轻型脚手架设施。现在我有一个scaffold.cfc
在控制器中调用的文件,看起来像
<cfcomponent hint="this is expected to be extended, and never used directly">
<cfscript>
function init(fw) { variables.fw = fw; }
void function home (required struct rc) output="false" {
/* TODO: Generic load */
setView("scaffold.home");
}
void function create (required struct rc) output="false" {
/* TODO: Generic create */
setView("scaffold.create");
}
void function show (required struct rc) output="false" {
/* TODO: Generic show */
setView("scaffold.show");
}
...
</cfscript>
</cfcomponent>
我想确保它index.cfm?action=scaffold.*
或index.cfm/scaffold/*
永远无法运行。
最好的地方在哪里?