Display CTP Files as PHP Files in PHPStorm

前端 未结 2 1849
挽巷
挽巷 2020-12-15 03:05

I have a project running on CakePHP. All of my views are stored as ctp files. How do I render my ctp files so I have the same visual formatting that\'s present when I look

相关标签:
2条回答
  • 2020-12-15 03:46

    In PHP Storm 2017: File | Settings | Editor | File Types

    Add .ctp into PHP's Registered Patterns tab

    Select PHP & In tab Registered Patterns > Click + > add .cpt
    

    0 讨论(0)
  • 2020-12-15 03:48

    File | Settings | File Types, assign this extension to the PHP Files.

    0 讨论(0)
提交回复
热议问题