I just bought my ticket for ZendCon, 2 hours before the discount ended, pretty stoked about that. This will be my first PHP/Developers conference and I am thoroughly looking forward to it. I never really had an interest in these before but my passion for PHP has grown tremendously this past year, so its only fitting that I go. I will be going with some friends and colleagues, so it should be a blast and not just me by my lonesome. Continue reading...
Cupcake Forum v1.8
The Cupcake Forum is a CakePHP plugin based on the popular bulletin board system. Bundled with all basic features, simply drop into your application.
Recent Thoughts
- Twitter feed is currently unavailable. View my Twitter
Blog entries for August 2009
So I have not posted for the past week, but I have a good excuse! I was attending Blizzcon and was doing coverage on Diablo 3 and Starcraft 2. If you dont know what Blizzcon is, its a giant convention held by Blizzard Entertainment that basically showcases their games. Continue reading...
Aug
14
14
Custom method for grabbing a row based on its id
Topics: Tutorials, CakePHP // 1 comments, 423 views
More times then none when working with a database, you need a general purpose method for grabbing fields from a row that matches an id. Cake has built in magic methods based on the table column that do just that, for example findById() or findBySlug(), but sometimes it grabs associated data that you do not want. Below is a basic method that you can place in your AppModel to grab a row based on its id, with optional parameters for restricting what fields to grab or what associations to contain. Continue reading...
First off you may ask, why would we need plurals in our locale files when we are defining everything our self? Well its quite simple, it is used within the Time helper (relativeTime(), etc) and can be used in conjunction with __n(). Well here is the proper way to do it. Continue reading...
Popular Entries
Topics
- CakePHP (41)
- Entertainment (2)
- Gaming (4)
- HTML & CSS (1)
- Javascript (6)
- jQuery (6)
- Other (8)
- Personal (10)
- PHP & MySQL (18)
- Plugins (3)
- Programming (8)
- Resources (13)
- Reviews (1)
- Scripts (14)
- Tutorials (41)