You will need to add recursive=>(value) to the $params when you need to get a ‘list’ of table items using related model conditions. Referring to the example depicted here, http://book.cakephp.org/view/1022/find-list let’s say you perform the following query:
An example of Google Checkout Integration in CakePHP
NOTE: You will have to make changes into the component code in order to get it working with you application. This is only a sample component and it should not be taken as a plug-and-play kind of component. NOTE: Download…
Object doesn’t support this property or method javascript error
In some browsers it would throw a “silent” error and stop executing javascript code. If you try to open page in IE in debug mode it would alert error message like this: Object doesn’t support this property or method
Gmail search tips & tricks
Posting a small collection of Gmail search tips & tricks which i recently summed up for personal use. I hope you find it useful.
My thoughts on an interesting (but self contradictory) article on “adbrite vs adsense” comparison
First of all, you do not find a “adbrite vs adsense” comparison here. If you are looking for “adbrite vs adsense” comparison and are in a hurry you are better to leave this article. This post contains my personal thoughts…
Best smartphones/mobile phones under Rs. 5000 and Rs.10000 in India
Yesterday, my uncle who lives in village rang me and asked me to research over feature-rich yet budget mobile phones available in India. Actually he wanted two phones. One under 10000 Rupees, for himself and another under 5000 Rupees for…
jQuery pop up message box sliding from left to right and positioning horizontally at the center
Just wrote a simple sliding box script to make a message box appear sliding from left to the middle of web page. The box appears once a day. The first appearance is logged into a browser cookie, so if user…
Validating php multiple-value checkbox form element with javascript
In php a multiple-value form element such as checkbox is named suffixed with a set of square brackets. For example, My commonly used colors are: <form action=”index.php” name=”myform” method=”post” onsubmit=”return validate_form();”> <input type=”checkbox” name=”colors[]” value=”red” /> <input type=”checkbox” name=”colors[]” value=”green”…
Useful trim prototype (function) in core javascript
Below is the most commonly used trim prototype/function in javascript. Posting for reference. String.prototype.trim = function() { return this.replace(/(^\s*)|(\s*$)/g,””) } You can place the above code (wrapped in <script></script>) inside <header> section of your web page or you can place…
Choosing a business listing directory script written in php
How to Choose a business listing directory script written or coded in PHP programming language I got a new client today who wanted a brand new website equipped with business listing directory feature. According to him, the script should be…