Mobile CakePHP Apps September 22nd, 2009
It feels like an age ago that I wrote a component and helper for CakePHP that could mobilize an app. Since then, things in the WAPL and Wapple world have moved on at a rate of knots and it’s time to re-write, re-factor and re-engineer the mobile cake code to keep it up to date.
The first version had a pretty basic component, used SOAP to communicate and had no in-built schema check to always produce valid WAPL code.
PHP Package as a Vendor
But now there is a PHP package available that handles the schema check and communication can be done by either REST or SOAP (the preferred method would now seem to be REST seeing as it has better error handling and doesn’t trigger a fatal error if a soap client can’t be created).
Plugging that package in as a vendor should be dead easy (although it does need a few little mods and upgrades of its own first) and then it’ll be just a case of writing a component and helper to make use of it.
Hopefully I’ll have something ready this week so you’ll be able to mobilize your real world cake apps!
Let me know if you have any ideas for how it should be built – as a component & helper? Maybe a plugin? Or just keep it as a vendor.. or maybe all of the above!
However, in this kind of setup, you’re going to come unstuck with plugins, themes and uploads. WordPress has an awesome upload utility, but the file you select from your local computer will get uploaded to a location on a single machine in your server farm. When a visitor lands on a different machine, they won’t see the upload. If you’re using the automatic add plugin or theme wizard built into the newer version of WordPress then it’s the same situation.
I used to work with someone who said that most bugs in software didn’t exist.
Now don’t get me wrong, what we’ve got is a really smart, well-designed and developed web service that’s both extensible and easy to use. But the fact was that if you hadn’t got SOAP, you wouldn’t be able to use it. And if you’d only got a shared host available, you might not be lucky enough to have a decent one like me (
All that work designing the clouds, making sure they appear at random locations and animating them so they move across the screen as if blown by a category 5 hurricane. None of it has gone to waste now it’s available for everyone!
If you’ve got any suggestions for other things that fly – 









