zen of coding

Solving the country/state problem with CakePHP and jQuery

I’d say that it is a pretty common issue (and maybe not quite “a problem”), where you would have a page with a billing form, which in turn, has a “Country” select as well as a “State” select. Obviously not all countries have states, and thus comes the question of[…]

Read More »

Self-adjusting credit card expiration year

Once in a while, it happens, that you need to build a payment form with credit card expiration year as a select input. With CakePHP’s form helper it’s pretty easy, but what’s even nicer is that you don’t have to hard-code any values for the actual years (and then have[…]

Read More »

Make sure your app runs within the specified time zone…

Update: 8/2/2010 As red pointed out in the recent versions of cake this is handled through core.php: http://github.com/cakephp/cakephp/blob/master/app/config/core.php#L247 For those stuck with the earlier versions of cake, but newer version of PHP (5.3+)… please see below: Even with a simple shared hosting, the server time zone might differ from the[…]

Read More »
%d bloggers like this: