Posted by Duncan | Posted in cakePHP, Yahoo! UI | Posted on 25-10-2008
1
Ok, so we all know how useful those flash messages are that cakePHP throw at us, “you’ve done it wrong, try again”. Well as much as I like them I don’t want to be reminded of my error untill I go to a different page. The answer is to make them disapear.
Using the YUI Animation Utility, we can simply make the div containing the message close to nothing. First you need to make sure your $session->flash() is wrapped in a div if it appears.
Posted by Duncan | Posted in cakePHP, Yahoo! UI | Posted on 23-10-2008
14
The aim of this tutorial is to be able to pull data from your database and output it in a nice shiny data table. Although the cakePHP paginator does this perfectly well, I have been using YUI and I am not a fan of the prototype library.
The YUI Paginator control is able to send requests to the server with parameters for the page required, the DataTable control can then format that data into our shiny table.
For this tutorial I have used CakePHP 1.2 RC3 and YUI 2.6.0. I am using a “Products” controller, model and corresponding views.
Thanks should go to this post http://www.ntatd.org/mark/?p=32 by Mark Buckner (aka hydra12) describing how to use cakePHP with ExtJS DataGrid, for the inspiration and the some of the cakePHP code for this tutorial.