Author Archives: Derick Ng

Planet CakePHP With Multiple Feeds

Short of having an actual announcement feed for Planet CakePHP, this seems like the fastest way to get information to all you subscribers. If you were wondering about the few non-English items showing up in the feed, you actually have a choice to subscribe to a separate feed which aggregates websites written in English/Portuguese/Spanish. [...]
Posted in Uncategorized | Tagged , | Leave a comment

CakePHP Losing or Missing Session?

I have my fair share of problems with session in Cake so I thought I can share the two important configurations in app/config/core.php which affects how Cake handles the session. Session.checkAgent Setting this to TRUE means Cake will store the user agent header of a request when a new session is created. On subsequent request, the user [...]
Posted in Uncategorized | Tagged , , | 14 Comments

Soft Deletable Behavior and the Model::exists() gotcha

If you ever used the Soft Deletable Behavior, you will realise that Model::del() always returns a FALSE. This is expected after knowing that the behavior intercepts the delete request by saving the deleted flag and date then returning FALSE so the actual delete don’t happen. So since I can’t rely on the returned value of Model::del(), [...]
Posted in Uncategorized | Tagged , , | Leave a comment

SingNet External Proxy IP Woes

Always get kicked out of your phpBB administration panel? Or the Apple Developer Connection? Assumed that SingNet can’t care less bout that 1/10000 website that don’t work for you and thus thought there was nothing you can do? OK, that was me until I asked with just 1% hope that there actually is a solution. [...]
Posted in Uncategorized | Tagged | 4 Comments

From wordpress on iphone

I am happy with my iPhone purchase! Woot!
Posted in Uncategorized | Tagged | Leave a comment

Multiple Validation Sets in CakePHP

Jonathon Snook wrote about multiple validation sets in CakePHP and it reminded me how often we require rather different sets of validation rules for a single model. I have always enjoyed learning how others approached similar problems so I think I shall share mine too. A very relevant example is the User model where we usually [...]
Posted in Uncategorized | Tagged , | 1 Comment

Extracting PO file with CakePHP I18n Shell

I have always been religiously wrapping __() and __n() around my texts knowing that it needs to be localized some day. Then it got to me that I never knew how to actually localize it! Out of curiosity, I went ahead to extract the PO file using the I18n shell. What it does is basically [...]
Posted in Uncategorized | Tagged , | 1 Comment

Welcome to Derilicious

I have always wanted a blog to note down things I have learn along the way and hope that in the process, it will help someone else too. So after several failed attempts to start blogging, I am happy that I have finally broken out of procrastination. Why Derilicious? I can’t think of anything better and [...]
Posted in Uncategorized | Tagged | Leave a comment