Category Archives for CakePHP

Use reCAPTCHA in CakePHP App

Update:According to http://blog.jambura.com/2013/01/02/use-recaptcha-in-cakephp-app/?fb_comment_id=fbc_576497325700235_7862505_715928588423774 you have to use following code if you are using CakePHP 2.x.x reCAPTCHA is a free ANTI-BOT service from google. This service is pretty good and very easy to implement. I have implemented this on my recent … Continue reading

02. January 2013 by Zakir Hyder
Categories: CakePHP, Library, PHP | Tags: , , | Comments

Customize CakePHP’s Error Messages With Component

CakePHP has wonderful way to show error messages after validating Form fields. It shows two types of error messages. One is at the top which says some thing liek this “User can not be saved. Please try again.”. another type … Continue reading

08. November 2012 by Zakir Hyder
Categories: CakePHP, Component | Tags: , , , , | Comments

CakePHP Helper To Generate Two Different Link For Canvas APP And Web App Depending On signed_request

I am developing a Facebook App for Canvas and Web. When a user comes to canvas app all of the link of app will start with “https://apps.facebook.com/appname/” and when users comes web app all link start with the web url. … Continue reading

27. June 2012 by Zakir Hyder
Categories: CakePHP, Facebook | Tags: , , , , , , | Comments

Implementing MySql View in CakePHP For Typeahead Search

View works like a table, but it is not a table. It never exists; it is only a prepared SQL statement that is run when you reference the view name. A programmer can write VIEWs that limit the dataset both … Continue reading

23. March 2012 by Zakir Hyder
Categories: CakePHP, MySql, PHP, Web Development | Tags: , , , , , , , , | Comments

afterSave: A Great Callback Method for Soft Deleting Related Model Data( hasOne, hasMany, belongsTo)

Update: Here is model file to download Download Code I never like to “Hard Delete” data. Some one will make mistake deleting something. Then they will tell you retrive it. So “Soft Delete” can save you time telling you clients/boss … Continue reading

01. March 2012 by Zakir Hyder
Categories: CakePHP, PHP, Web Development | Tags: , , , , , , , | Comments

Add Your Own Validation in model On CakePHP

Update: Here is model file to download Download Code CakePHP has many validation rules that can make model data validation much easier. There are 26 core validation rules. You can see here. These 26 rules almost covers all the validation. … Continue reading

26. October 2011 by Zakir Hyder
Categories: CakePHP, Web Development | Tags: , , , , | Comments

Should I Use Database For Storing sessions in CakePHP?

Session handling is a important part of any web app. CakePHP offers 4 storage facilities for session storage. I will go through all of them and discuss advantages and disadvantages of 3 of them. They are cake (Saves the session … Continue reading

24. August 2011 by Zakir Hyder
Categories: CakePHP, PHP, Web Development | Tags: , , , | Comments

← Older posts