CakePHP for TextMate
Do you like Cake? Are you a TextMate user? Well, then maybe the CakePHP bundle for TextMate is just what you need!
Many of you TextMate users and CakePHP bakers may already be aware that once upon a time (until yesterday, actually) there existed a TM bundle for Cake, but it wasn't that great and it was never updated!
Well, I've taken this chance to refurbish what was there, merge my own changes and now I introduce to you a newer and quite possibly better CakePHP bundle for TextMate!
There is currently no release of the bundle, but it is sitting on the Macromates "review bundles" repository, and waiting for you to check it out!
You'll need the subversion client to do this. If you don't have SVN, refer to http://subversion.tigris.org/project_packages.html on installing it.
To checkout the bleeding-edge copy of this bundle and use it in your TextMate, simply copy/paste:
# if this directory doesn't exist, make it with `mkdir -p`
$ cd ~/Library/Application\ Support/TextMate/Bundles
$ svn co http://macromates.com/svn/Bundles/trunk/Review/Bundles/PHP\ Cake.tmbundle
Now all you need to do is run TextMate, open a PHP file and try it out!
Note: You'll first need to select the "HTML (PHP Cake)" language from the bottom drop-down list to apply the CakePHP scoping rules to your files. Setting this one will allow TextMate to remember forever. (.ctp and .thtml templates are automatically recognized).
That's all! I hope you enjoy the bundle, and if you have any questions or comments, any kind of feedback at all--do not hesitate to contact me on IRC (irc.freenode.net/#cakephp) or e-mail.
Well, I've taken this chance to refurbish what was there, merge my own changes and now I introduce to you a newer and quite possibly better CakePHP bundle for TextMate!
There is currently no release of the bundle, but it is sitting on the Macromates "review bundles" repository, and waiting for you to check it out!
You'll need the subversion client to do this. If you don't have SVN, refer to http://subversion.tigris.org/project_packages.html on installing it.
To checkout the bleeding-edge copy of this bundle and use it in your TextMate, simply copy/paste:
# if this directory doesn't exist, make it with `mkdir -p`
$ cd ~/Library/Application\ Support/TextMate/Bundles
$ svn co http://macromates.com/svn/Bundles/trunk/Review/Bundles/PHP\ Cake.tmbundle
Now all you need to do is run TextMate, open a PHP file and try it out!
Note: You'll first need to select the "HTML (PHP Cake)" language from the bottom drop-down list to apply the CakePHP scoping rules to your files. Setting this one will allow TextMate to remember forever. (.ctp and .thtml templates are automatically recognized).
That's all! I hope you enjoy the bundle, and if you have any questions or comments, any kind of feedback at all--do not hesitate to contact me on IRC (irc.freenode.net/#cakephp) or e-mail.
Comments
Bug
1 Error checking out bundle...
svn: Can't convert string from 'UTF-8' to native encoding:
svn: PHP Cake.tmbundle/Snippets/Inflector::humanize(?\226?\128?\166).tmSnippet
I'm running OS X 10.5.3
Comment
2 Locale
Try executing the following command:
$ export LC_CTYPE=en_US.UTF-8
And then try checking out from the repository again.
Most TextMate bundles (include the CakePHP bundle) use UTF-8 characters, therefor things might break on default terminal settings, but altering $LC_CTYPE to use a UTF-8 locale should fix it.
Comment
3 Excellent work
Comment
4 That worked...
=]
Comment
5 Great Work
Comment
6 nice work
There seem to be lots of command slooking through -
for those who don't use bundles to much a great TextMate shortcut is control-command-T and then you see what commands are available and you can type tof ilter this even more!
Luke / boobyWomack / battez
Comment
7 Also useable in E TextEditor under Windows
A guide to installation is found at http://www.toadz.dk/install-cakephp-textmate-bundle-in-e-texteditor/
Comment
8 Shortcuts not working
Comment
9 Select the HTML (PHP Cake) language first
Comment
10 I figured it out
Comment
11 Just needs templates