So, in this article I will explain how I create datepickers in my CakePHP projects with jQuery. So, let’s start:
1. You need to use jQuery lib 😉
2. Get this jQuery widget and put it in your /webroot/js folder. Don’t forget to include it in your layout. Continue reading
This is a really old post. I’ve wrote a new one which you can find it here
I am using this part of code from long time ago, but it wasn’t in a separate helper. It was part from one not very good written Auth component/helper mash up which I already not using. I fact the default Date input of CakePHP Framework is ugly and not user friendly at all. The drop-downs are good because the format is clear and users cannot mess it, but if you thinking for the user convenience, then you should know that it’s 3 times easier just to type the date in a field or to pick it from a Calendar pop up than selecting from 3 drop-downs.