Flipflops.org – Web Development and bit of Art Rotating Header Image

Posts under ‘PHP’

MySQL DATE_FORMAT() AND PHP date() formats

I’m always finding myself looking up strings to format PHP and MySQL dates. A simple d/m/Y is pretty straight forward but sometimes things can get a bit fiddly. Where ever possible I try and leave my date formatting in the database, but I still find myself doing it in PHP all the time.
Here are a [...]

Lithium, Doctrine & doing it yourself

If you use CakePHP you’ll probably be aware (or you’re dead or on holiday or something…) that Gwoo and Nate have left the project and gone elsewhere. Sort of. Well actually they have forked Cake3 into Lithium – souped up CakePHP for PHP 5.3
Unfortunately I’m not going to be using it in the immediate future [...]

CakePHP Menu Helper for Tree data

This is the MenuHelper I use in my CMS system. It is designed to work with data from the Tree behaviour or from any $model->find(‘threaded’) call. I use it to generate multi level CSS menus (that you see at the top of most websites), contextual menus (that you see in sidebars, showing the current page [...]

Messing about with Tarzan and the Amazon AAWS web service

At the moment I building a couple of applications running of the Amazon AWS web services – in a nutshell e-commerce sites that utilize products available via Amazon or companies selling through Amazon and then let you check out using Amazon’s secure checkout (the site owner gets commission on each product sold).
The system is great, [...]

Two CakePHP behaviours to extend MeioUpload

I’ve been using the the Meio Upload Behaviour for a while as its a very handy piece of code, but as is so often the case it doesn’t do quite what I need. In the past I’ve got round this by hacking together a kind of supporting framework in app_controller and scattered about in my [...]