Wed 25 Jul 2007
Today I added some more Views to the little set of already finished pages in my long-taking journey to replace all scaffolded pages with my own creations. I added a simple index page for the recipes that is showing a random recipe at the moment. It could need some more tweaking, as I’m getting all recipes from the database and only using 1 to display its contents… this should be moved into a specific query to the SQL database to avoid the creation of many PHP variables.
Another View that is already in the creation process is the index page for categories and a simple view/edit combination. This is very easy because a category entry has only two fields: ID and category. So it isn’t too hard to create a page.
I added a basic validation using CakePHPs mechanisms and it is working fine. The result page when saving the edit is just a flash message that you have to click to continue, but I try to add some more AJAX style with a fading message box later.
I think I can work on CR2.0 in the next days, so there will be more change to come! Check the CVS repository for code updates.