International Number formats

By Andy, filed under CakePHP, Tips

Perhaps this will be useful for others.

I needed to be able to convert decimal number to and from the 'local' format. By adding the below methods to my app_model, it is possible to silently convert decimal numbers as they come out of the database to be local format, and vice versa to save. In the code below it is converting numbers of the format 999.999,99 to be...

read more2 comments

  • Even More Pagination

    By Andy, filed under CakePHP, Tools, Pagination

    I've enhanced the pagination code and added more improments. Mainly in terms of use, as it is now virtually identical to use as either get, pretty, or named style.

    This one is probably the most interesting example:

    Noisy Named Params

    The source code is (for all examples) is available at the top of the page.

    Time for sushi :)

    read more3 comments

  • The Heat is on

    By Andy, filed under General

    Had a major panic yesterday.

    Recently I got bored of moving files around from this machine to the other.. so I put everything on my laptop. I've also been using my laptop on the journey to work and back (on the tram), an easy way to gain 2 useful hours, which would otherwise be spent licking the window.

    However, when I tried to check my mails yesterday evening I found...

    read more0 comments

  • The pope has been and gone

    By Andy, filed under General, News

    The pope has been in town this weekend, and like most locals, we took the opportunitiy to escape to the hills.

    On Friday I chose not able to go to work as traffic was 'amusing' at best, and for the whole weekend mobile phones have been disabled (or so I'm told, I didn't go into town to check).

    Back to life as normal on Monday...

    read more2 comments

«  »