Written one year ago
A selection of CakePHP goodies I've written over the past few months. Components, Behaviors, Controllers, and a bit more.
All files are documented inside the code, and they're all offered under the MIT license. Remember to RENAME THE FILES to .php
A bit about each of these files:
- Slug Behavior
- Automatically generates a URI Slug (Wordpressians may know this as a "Permanent Link") from a Title field. This is essentially creating a URI- (URL-) friendly version of your post title.
- App Model
- This is my common app_model.php Class, which defines some common validation functions. It's all hacks I've found on the web (attribution given where appropriate) to get around some of CakePHP's limitations.
- Say Component and Say Helper
- When you need to say something to your users, this makes it very simple. Inspired by Wicket's notification functions, in the face of Web 2.0's crappy "Flash" notification trend. I hope that goes away soon.
- Menu Component & HMenu Helper
- A unified Menu setup for your app. It centralizes your menu settings, and allows for infinitely nested subMenus. This eliminated a few headaches for me. It's highly functional, but not yet fully efficient. Improvements are welcome!
- Tidy Helper
- Automatically employs HTMLTidy to clean up the source output. I like clean source code.
- Fuzzy Time Helper
- A fun little helper to fuzzify your time. I found this code "less than an hour ago" (see what I did there?)