I've been getting to grips with the newest release of CakePHP which at the time of writing is 1.3.3. The first thing I usually do on an application is get a simple Admin section underway and here it is.
Everything has been included in a single zip file but you must first go through the motions of creating the database and update the database.php file as well as change a few things in the core.php file.
Just a quick tip, I've been playing with the new 1.3.3 version of Cake recently and was trying to get the database sessions up and running but had difficultly finding the schema for the sessions table without using the command line to generate the table.
Here's the raw SQL that can be used to create the table. I'm sure it'll be useful in the future for me so I thought I'd share.
CREATE TABLE `cake_sessions` (
`id` varchar(255) NOT NULL DEFAULT '',
`data` text,
`expires` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
);
Now you just need to modify the core.php file so that the database is used for Sessions instead of the default:
Configure::write('Session.save', 'database');
The latest script I've created to put on CodeCanyon enables visitors to request a feature on your website or web application. Users can then vote up that feature so that priority features can be implemented before others. The voting is done using Ajax with the jQuery library and has some basic IP based protection so that users can't just spam a feature and keep voting it up.
For an online demo click here and try requesting a feature and let me know what you think.
Started watching a really good show called Justified that I have to share with you good people.
It's only on the first season over in America and at the time of writing 8 episodes have aired. Get watching the first couple and let me know if you're into it!
Finally getting round to writing a post on the Ajax Store Locator I created to put on CodeCanyon. It's doing relatively well and thought I'd share.
For an online demo click here and try searching on the map.
After creating the TVDB script I immediately began work on a Film version where you could download high quality Film posters and backdrops for use in your websites and applications. This script uses the fantastic themoviedb.org to grab the images.
For an online demo click here and try adding some of your favorite Films.
Combining my love of TV Shows and being a nerd I've created a PHP script that will download high quality poster and fanart images from the superb thetvdb.com and store them locally for you to use or integrate with your website or application.
For an online demo click here and try adding some of your favorite TV shows.
For a long time now I've been using Usenet to download everything I ever need from the internet so I'm going to let you know what I use and how you can get setup using it quite quickly. I do pay money for a few of the services I'm going to describe, but it isn't much and it's totally worth it.
In this post I'm going to describe how you can use Ajax using the jQuery javascript library to delete items without a refresh. This is quite an easy enhancement to achieve and will help with the usability of your applications. It isn't CakePHP specific but in this example I'm using the framework to delete items from the main index.
I'm a big fan of progressive enhancement and so the delete action will still work without Javascript enabled but this will improve the user experience a little bit by keeping the user on the same page and will display a smooth fade animation to get rid of the table row.
As a Christmas present my wonderful girlfriend bought me the box set of the superb TV show The Shield which includes the full 7 seasons presented in a very delicious box which acts a police case folder with cool separators for each of the seasons.
Other than The Wire if I had to recommend a gritty cop drama that actually left viewers with a worthwhile conclusion The Shield would be it. Each season contains around 12 episodes with a major plot arc through each one along with a huge plot arc throughout the entire show and events that happen in the very first episode come back in the final season with devestating effects.