How can I create a new CTP file (CakePHP) in NetBeans?

I found a lot of information on adding CTP file support for NetBeans, but usually it’s about code highlighting and processing a ctp file, such as a php file. This can be done at:

Tools → Options → Miscellaneous → Files

I have done it.


However, when I try to create a NEW ctp file. I dont have an opportunity.

I tried going to Tools -> Templatesto add a ctp template. There is no new button, just the add button that searches for the file.

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

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

I just want to create a new .ctp file, it should not be so difficult. Does anyone know how?

I am using version 6.9.1

+3
source share
2 answers

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

if you have .ctp it will not add .php

+8
source

You can add an empty file by right-clicking on the folder view, then click on the new empty file after you can specify its extension.

0
source

Source: https://habr.com/ru/post/1793069/


All Articles