Display CTP Files as PHP Files in PHPStorm
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
File
| Settings
| File Types, assign this extension to the PHP Files
.