Extending application.cfc in a subdirectory

前端 未结 3 1412
心在旅途
心在旅途 2020-12-05 15:50

I have the following two files and would like the second to extend the first:

  1. wwwroot\\site\\application.cfc
  2. wwwroot\\site\\dir\\application.cfc
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-05 16:23

    I know this is an old topic, but I found a way to do it (that seems to work in my testing) without using the CF Administrator mappings.

    You can do this by adding a per-application mapping in your child Application.cfc using an expanded relative path:

    
    
    
    
    

    Yeah, it feels little hacky, but it seems to work.

提交回复
热议问题