我在我的onRequestStart()方法中使用了一些包含的cfc請求:<cfif listLast(arguments.thePage, ".") neq "cfc">
(我從Ray Camden在論壇中獲得此處http://forums.forta.com/messages.cfm?threadid=10C19539-E898-C4C8-5F32EBA5B054C3D6感謝雷)將頁頭代碼添加到來自綁定的cfc調用中的問題
但是,我仍然被添加到我的JSON響應代碼:
`[[46,"Childcare Volunteer Costa Rica"],[59,"Conservation Volunteer Costa Rica"],[111,"Ecotourism Volunteer Costa Rica"],[25,"Emergency Response Volunteer Costa Rica"],[52,"Grant Writing & Fundraising Volunteer- Costa Rica"],[13,"Medical Volunteer Costa Rica"],[19,"Nursing Volunteer Costa Rica"],[39,"Patient Care Volunteer- Costa Rica"],[32,"Public Health Volunteer- Costa Rica"],[103,"Reading Week Wildlife Project"],[73,"Special Needs Volunteer Costa Rica"],[117,"Volunteer Teaching All Ages Costa Rica"],[89,"Volunteer Teaching Classroom- Costa Rica"],[96,"Volunteer Vocational Training- Costa Rica"],[66,"Webdesign & Computer Volunteer- Costa Rica"],[114,"Wildlife Volunteer Costa Rica"],[80,"Youth Outreach Volunteer Costa Rica"]]**<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>`
別的地方,這可能被插入或什麼,我可能會丟失任何想法? (我不使用onRequest或onRequestEnd,現在,我不認爲這有什麼其他的將被加入這個的Application.cfc)提前爲任何幫助
感謝....
@ Adam ...非常感謝您的回覆......您的評論讓我想到我可以在CFC文件夾中放置一個Application.cfc的空模板.....就像一個魅力一樣。謝謝。 – Jim