The Bakery has three new items posted today - a view helper for CSS/JS file inclusion, field validation, and rewriting a plugin's paths:
- NiceHead helper with autoloading of javascript and css - Injects CSS/JS into the head tag in your layout and autoloads css/js files for you based on current controller and action.
- Multiple rules of validation per field in CakePHP 1.2 - On this article we'll take a look at multiple rules of validation per field, and how easy it is to use them on our 1.2 models.
- Rewrite a plugin's paths to look nicer - Plugins are a fantastic and vastly underused tool in CakePHP! But their default paths can be strange sometimes. This article describes how to rewrite a plugin's paths using bootstrap.php.
Check out these and more great CakePHP-related tutorials on The Bakery!