A Weblog written, styled and hacked by Joel Moss
Since I discovered the DebugKit plugin for CakePHP that is currently in early development by Mark Story and others (including me. well, one commit still means I helped ;)), I have been left rocked about the power of plugins. I always thought that plugins were simply a way to create a Cake app that can be plugged in to an existing application. But It seems I underestimated their power.
So I began to think about how I could refactor Migrations into a plugin, rather than a bunch of files that you drop into your vendors directory. And that took me all of 20 seconds! I didn’t have to change a thing. Thanks to this latest commit, you can now use a shell script from any plugin.
So I just drop the migrations directory directly into my plugins directory, and wham bam thank you maam! I created my first Cake plugin.
Of course, I can still drop the migrations shells into my global vendors/shells directory, but I just like the way I can plug it in.
So a plugin is now the recommended way to use Migrations.
My name is Joel Moss, a web developer and all round nice guy, living in Manchester, England. I am currently working full time for ShermansTravel.com, but I fill whatever spare time I have with lots of good and wholesome "stuff"! Like developing my own ideas; such as Tooum, contributing to the excellent CakePHP framework, and doing more work for ShermansTravel.
So this is my blog - my soap box! Here I attempt to share my likes, my dislikes, and my opinions. As well as providing some occasional respite from the daily crap we all endure. Enjoy ;)
Hey, if you want to reach me, i'm available via email:joel[at]developwithstyle[dot]com, and AIM:joelkmoss.
Leave a reply