Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display CTP Files as PHP Files in PHPStorm

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?

like image 593
Lloyd Banks Avatar asked Feb 14 '13 14:02

Lloyd Banks


2 Answers

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

like image 65
CrazyCoder Avatar answered Sep 27 '22 20:09

CrazyCoder


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

enter image description here

like image 38
Alex Avatar answered Sep 27 '22 19:09

Alex