dou426098 2011-02-18 15:22
浏览 50
已采纳

如何在NetBeans中创建新的CTP(CakePHP)文件?

I have found a lot of info about adding CTP file support for NetBeans, but this is usually talking about code highlighting and treating a ctp file like a php file. This can be done at:

Tools -> Options -> Miscellaneous -> Files

I have done this.


However, when I try to create a NEW ctp file. I do not have the option.

I tried going to Tools -> Templates to add a ctp template. There is no "new" button just an "add" button that looks for a file.

I created a file on my desktop called cake_template.ctp on my desktop. I added it to the PHP templates in the template manager. I called the template "PHP Cake Template".

Still when I go to create a new file, the option is not there. I restarted NetBeans, still the same.

I just want to create a new .ctp file, it shouldn't be this difficult. Does anyone know how?

I am using version 6.9.1

  • 写回答

2条回答 默认 最新

  • douzhouhan4618 2011-02-18 15:41
    关注

    just right click on the folder in the project view, and then say new php file. then just type the file_name.ctp in the field.

    if you have .ctp it will not add .php

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?