So recently I’ve been following this simple tutorial to learn about creating a simple MVC PHP framework: http://www.domagojsalopek.com/Details/Create-a-simple-PHP-MVC-Framework/28
It’s so simple that I got a MVC template in less than an hour. But it definitely took me some time to fully understand the code. Luckily I have some experience with WordPress and CakePHP so somehow it wasn’t too long for me. *Trigger proud-mode* 😛
As usual I was using my favorite IDE Aptana but something struck me: I don’t see the PHP color code for the *.tpl files that I have created for the MVC framework. It’s quite annoying and inconvenient.
Turns out it’s actually quite simple to “fix” it.
- Just go to Preference (Mac users check the “Aptana Studio 3” menu at the top panel, WIndows and Linux users should check the File or Tool menu)
- Under General -> Editors -> File Associations
- Under File Types -> Choose Add, and enter: *.tpl
- After added, click on that file type
- At the bottom, click Add and choose “PHP Source Editor”.
Done!
Now when you reopen all the *.tpl files in Aptana, it will be recognized as PHP files.
Hope this is useful to you. 🙂