Brightball

Articles about CakePHP

What's the "right" PHP Framework? Presentation

PHP | CakePHP | Rails | Ruby | - June 21, 2014 // Barry @ Upstate PHP

This is a presentation that I recently gave at UpstatePHP in Greenville evaluating the framework landscape in PHP. We discussed why there are so many, history, goals, benefits, concerns and ultimately a recommendation.

The Drawback to Web Frameworks

Rails | Ruby | CakePHP | - April 29, 2013 // Barry

Web frameworks are great, don't get me wrong here. They provide a structure and consistency across projects that will transcend developers over the life of a system while dramatically simplifying the code base amongst other wonderful side effects. But what's the downside?

String localization with dynamic content in CakePHP

CakePHP | PHP | i18n | - June 20, 2009 // Barry

Cake has a wonderful shell script function built into it called extract that will run through your code and create a .po file full of all of the text contained within your __('My text here') calls. You can then pass these files onto to translators to modify them for your languages. When you want to add variables though, you have to break it up into pieces which may change the context of the phrase. Here's a way around that.

WYSIWYGPro Helper and tutorial for CakePHP

PHP | CakePHP | - June 14, 2009 // Barry

I couldn't find any resources on setting up WYSIWYGPro with Cake so I developed this helper along with instructions for total integration with your system. If you've never used WYSIWYGPro, you should check out the demos. I've tried every WYSIWYG editor out there and none of the other ones even come close as far as I'm concerned.

PublishableBehavior for CakePHP

PHP | CakePHP | - June 10, 2009 // Barry

PublishableBehavior allows the use of datetime fields for start and end ranges on content. Included functionality allows for checking published status, toggling to published / unpublished status, and adding conditions to a find to properly filter those results.

Smoother CakePHP date/time fields with jQuery

PHP | CakePHP | - April 22, 2009 // Barry

While working with the date/time input fields in Cake I got tired of having to select 3/6 drop down boxes to choose all of the date/time information and specifically of having to select 3/6 drop down boxes if I decided to clear the date. A little bit of jQuery will clear this right up though.

Automatically loading your ACL tables

CakePHP | PHP | - January 27, 2009 // Barry

If you've spent anytime wanting to use ACL on your applications, you know how tedious it can be to manually enter your entire controller and action structure. This Task will handle finding and loading or updating all of those for you whenever you run it from the command line.