Today I want to present some useful shell scripts I often use. Hopefully you find them useful, as well 🙂 Where to put them Drop shells in a vendor folder of your choice (either app, core, or plugin), for instance:…
Bitcoins and CakePHP
When I started to try this out with a friend I was surprised how few resources there are. Especially in the CakePHP sector. Bitcoins are not very common yet – although quite promising: anonymous, not refundable payments without any transaction…
Introducing two CakePHP behaviors
Today I want to introduce two new CakePHP behaviors. Jsonable Behavior This is not so new, of course. Already existed as a basic version in the Bakery. I enhanced it to work with more than just plain arrays and added…
Very useful CakePHP Code Snippets
A small collection of useful Cake Snippets for all projects made with Cake. First of all: Keep it DRY If you have several projects I recommend extending vendor classes. require_once(VENDORS.'my_model.php'); class AppModel extends MyModel {} Same for AppController, AppHelper, bootstrap…
Storing and managing accounts
I get questions like "What is the svn address again" or "What was my password" all the time. You could write them all down somewhere on paper. But copy-and-pasting them is so much easier and faster. So we end up…
Working with domains locally
Most beginners use "http://localhost/…/app/ for their project when they develop locally. This can have several possible downsides if not carefully avoided. Especially with (hardcoded) paths in css, js, images or any other browser url related issue. So the better way…
Cakephp Console on Linux systems
You could hard-wire the Cake path into the environment. With multiple cake core versions on a single system, sometimes it is better not to do that, though. So I just follow the following guidelines: Only add the PHP path to…
Unit-Testing in CakePHP
Warning: Some information my be deprecated! This is still from 1.3 and SimpleTest. CakePHP now uses PHPUnit in 2.x – please see the updated article here. Some tips you might not have read about yet Since the cookbook is quite…
All new CakePHP Tips and Tricks
This is supposed to be a list of useful tricks gathered over many months. First Templates, then Bake, then Adjustments The usual workflow for a new project should be Create your custom templates Bake your crud actions using this very…