Let Zend Studio Contact the cakephp template file. CTP

Source: Internet
Author: User
Tags php editor
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!

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.