Forum

The Forum is a CakePHP plugin based on the popular bulletin board system. Bundled with all basic features, simply drop into your application.

Entries for Tutorials

It's now time for some PHP that isn't Cake related. This is the first part in a series of "Basic/Common PHP functions that all programmers should know". This series has to deal with manipulating strings. I try to make my functions short, sweet and powerful, and I hope you learn something from them. Has functions for truncate(), shorten(), obfuscate(), slugify() and listing(). Continue reading...
So I never worked much with named parameters before in CakePHP, but recently I needed a way to filter data. It seemed passing many arguments to the action wasn't the best or correct approach. So I went off and wrote my own method to grab the value of named parameters. Continue reading...
Below I will quickly and easily show you how to enable Apache's mod_rewrite in XAMPP Windows. If you are unclear on what mod_rewrite is, it basically takes a long query string url and shortens it to be SEO and user friendly. Now if you are also a CakePHP user, having mod_rewrite enabled is the best course of action. But it seems that mod_rewrite is not enabled with the initial install of XAMPP. Do not worry, it's extremely easy to enable the module, and here's how it's done. Continue reading...
When a form is submitted in CakePHP, any errors that fail the model validation are displayed after each respective input field. But if you're like me and really dislike that structure and output, and would rather have your errors displayed in a list above the form, then this is how you do it. Continue reading...
Recently since I moved to this new domain, I wanted to use my old Mint database and keep all my statistics. So I transferred my Mint licenses, installed Mint 2 on the new domain, updated Mints DB configuration and added the JavaScript tag to start tracking. Everything was up and working, but there was one big problem, all my urls were malformed and escaped. Here is how I fixed them. Continue reading...