Hello,
When you open a .ctp file, chose PHP at the bottom/right of Atom :
I suggest to you to install those following plugins with Cake, it will help a lot :
https://github.com/Peekmo/atom-autocomplete-php
https://github.com/AtomLinter/linter-phpcs
You will need to install this plugin first, to get linter-phpcs to work.