Let Zend Studio associate a cakephp template file. CTP
Zend Studio is a powerful PHP editor with a variety of forces to put the PHP developer down. For cakephp programmers, one thing is quite a headache, after the initial installation of the Zend Studio program, you can only build Zend Studio has predefined file extension PHP files, in addition, For example cakephp template file private file extension. CTP is not built, even if can be established, also cannot coloring PHP, presumably a lot of people have this experience.
So is the mighty Zend Studio going to fall down here? Of course not, the editor not only defines some file suffixes by default, but also makes it possible to associate special filenames with the language by customizing them. Below we mainly say how to add cakephp template file. CTP type associated with PHP.
Open Zend Studio, click on the following path, and the following dialog box will appear.
Window-Preferences
As shown, click General->content Types on the left, then click on the text-to-PHP Content type on the right, then click the Add button. In the pop-up dialog box, write any extensions you want to add, such as CakePHP's template files. CTP, write *.CTP, save off.
Next to file association, click on the left side of general, Editor, file associations, on the right side of the File Associations Files Association bar, click the Add button, also in the popup dialog box, Write the filename suffix that you just filled out, such as *.CTP, save and close.
If everything works, you can now create a new. CTP end of the PHP file!