After finding the excellent CodeIgniter TextMate Bundle, I’ve switched to TextMate as my editor of choice for my CodeIgniter development. I’ve tried switching to TextMate in the past and there is a lot I like about it, however I always end up back with BBEdit for find/replace and other text manipulation tools.
This time though. I think I may be switching to TextMate permanently for CI development. My main annoyance with CI is how verbose some of the syntax is. Shortcutting that is worth quite a lot to me.
I’ve added a couple of snippets to the CI bundle. Here they are in case anyone else finds them useful.
This gives you a model property – named ‘model->property’ with Tab Trigger + cimod assigned:
\$this->${1:Model_name}_model->${2:property}$0
This gives you a model method – named ‘model->method’ with Tab Trigger + cimod assigned:
\$this->${1:Model_name}_model->${2:method}(${3:args})$0
It’s a little thing, but I’m quite excited about this and I’m really looking forward to seeing if I can incorporate these time savers as habits as I’m doing a little CI work this weekend.
[…] CodeIgniter TextMate Bundle Additions […]
Alex,
I installed your Twitter WP plug-in tonight (donated $2). Wow. It works perfectly.
I also stumbled across this post. THANK YOU for mentioning CodeIgniter. I’d never heard of it before. I’ve been considering starting a new application with CakePHP. CI seems so much easier to learn and use. Instead of baking – i’ll be making with CodeIgniter!
[…] CodeIgniter TextMate Bundle Additions […]
Hi Alex, glad you like the bundle i’ve just updated it to include the modifications to CodeIgniter 1.6.1. I also took the liberty to also include your two snippets hope you like it
[…] CodeIgniter TextMate Bundle Additions […]
This works perfectly, thanks!
[…] CodeIgniter TextMate Bundle Additions […]