Display CTP Files as PHP Files in PHPStorm

前端 未结 2 1848
挽巷
挽巷 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
    

提交回复
热议问题