Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

The Bakery:
Four New Articles/Tutorials
May 10, 2007 @ 09:35:00

The Bakery has four new articles/tutorials they've posted lately looking at things like thumbnail generation, data validation and add/delete behavior.

  • Thumbnails generation with phpThumb - phpThumb is a great thumbnail generator, it can generate thumbs with GD, GD2 or ImageMagick. There are many features like crop, rotate, watermark,... see all the features on the phpThumb homepage.
  • HABTM Add & Delete Behavior - Many people gripe about the HABTM associations in CakePHP and how difficult it is to add or delete a single record. This behavior takes care of the task for you!
  • Flexible controller and modelpaths - This short tutorial will show you how to organize your model and controller in subfolders of the controllers and models folders!
  • Rails-like Data Validation - Validate your data like in rails: http://rails.rubyonrails.com/classes/ActiveRecord/Validations/ClassMethods.html
There's more great content where these came from, so be sure to check out the rest of The Bakery for more great tips.

tagged: cakephpframework datavalidation phpthumb controller modelpaths cakephpframework datavalidation phpthumb controller modelpaths