2014-09-13 6 views
1

FW/1 용 경량 비계를 만들려고합니다. 지금은 내가 index.cfm?action=scaffold.* 또는 index.cfm/scaffold/*가 실행되지 않을 수 있는지 확인하려면FW/1 용 경량 비계

</cfscript> 


</cfcomponent> 

...

<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"); 
    } 

처럼 보이는 컨트롤러라는 파일 scaffold.cfc 있습니다.

어디에서이 작업을 수행 할 수 있습니까?

답변

5

controllers 폴더 외부에 scaffold.cfc을 배치하여 FW/1이 컨트롤러 CFC로 간주하지 않도록 할 수 있습니다 (컨트롤러 만 직접 사용하지 않으므로 컨트롤러로 직접 사용하지 않으므로). controllers 폴더의 하위 폴더에 배치 할 수 있으며 FW/1은 무시합니다.