Bitcoins and CakePHP

2

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…

Very useful CakePHP Code Snippets

1

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

0

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

1

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

1

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

0

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

1

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…

Working with models

0

Since there is so much to talk about it here, I will cut right to the chase. We all know about "Fat Models, Slim Controllers". So basically, as much as possible of the code should be in the model. For…