我在我的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