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 at a file that is stored as a PHP file? In Notepad++, I was able to do this by selecting from the 'Language' toolbar option. Is there a similar feature in PHPStorm?
File
| Settings
| File Types, assign this extension to the PHP Files
.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With