Helpful Tips and Tricks

$html->link with html or image in CakePHP 1.2/1.3

Today i was working with $html->link in CakePHP 1.3. I need to show image and make a link on that image. If i use the $html->link and place the $html->img for link label than it display img html tag text and not showing the image. You can do it by defining escape to false. But syntax for defining 'escape'=>flase in CakePHP 1.3 is different.

Radio button in CakePHP 1.1/1.2/1.3

Are you facing a problem in radio button when you are working woth CakePHP 1.3 ? Today i was working with Radio button in CakePHP 1.3 and i face some difficulty in showing radio button, remove hidden option and show selected radio button.I found little syntax change in CakePHP 1.3. Here i am showing you how to show radio button with CakePHP 1.3.

Authorize/Delay/Hold payment in PayPal

Hello Friends, Do you know the paymentaction feature of PayPal ? It is used to make authorization of payment. This means once PayPal account owner will Capture the payment than only the payment will be deposited in his/her PayPal account. I was in search of this feature as my client have a specific requirement for [...]

jQuery editable – Edit in place/Inline editing

Are you working with jQuery and want to update record in database with inline editing ? Yesterday i worked with jQuery-Ajax and update records in database without submission of form. You might be aware with jQuery-Ajax and update records in database but if you are looking for edit in place than here i am showing a way to edit a record in place.

Implementing Google Maps using API on your website

Are you looking to implement Google Map in your website ?? Do you have a Real estate property website ? If yes, the you must implement(integrate) Google map using API key into your website. Recently i have implemented the Google map into one of my client's website and it is very easy to implement.  Here i am showing you the step by step way to integrate the Google map into your website.

FCKEditor solution – How to store full URL for images (Show absolute path)

Today i came across a problem with FCKEditor. When i upload an image from fckeditor Browser Server option, it uploades correctly and insert image in content as well. But if i will send this content in email (for newsletter) than image will not be there as fckeditor inserts relative path in source of image. There should be a complete URL for image if you are sending this content into email. I was trying to find the way that how to insert the full url path when image uploads from FCKEditor.

Maximum Charactors/Words limit(counter) for textarea using Javascript/jQuery

Are you looking for limiting charactors/words entered in textarea? Today i need to implement the limit for description field where customer can only enter upto 255 charactor. If customer entered 255 charactors than i have to restrict customer from entering more charactors in textarea field. I came across below javascript/jQuery function using which i can easily restrict customer to enter limited charactors/words.

Sending email with multiple attachment using php’s mail() function

All we know how to send email in php. You might not be aware with sending email with attachment in php. If so than refer my previous article which explains how to send email with attachment(single). Today i have a special requirement where i need to send multiple attachments (more than one) in mail. If you are looking for send function for sending email with multiple attachment in php than here i am sharing the function using which you can send an email with mulitple attachment using php's mail function.

Redirect one domain to another using .htaccess

Are you looking for redirecting your website from one domain to another ? I was working for client who has a domain in .com and now they want to move full website into .ie domain. The problem is that all links has been crawled by major search engine. So if we remove all files from .com domain than it shows 404 not found (broken links) for .com domain links. Also we have to remove files to avoid duplicate content issues.

Sending email with attachment using php’s mail() function

All we know how to send email in php. If you are begineer in php than i must say php provides inbuilt mail function named as mail(). Using this function we can implement email functionality very easily just by passing four parameters (to, subject, message and headers). But what if you want to send an attachement with an email ? Today i came across a functionality where i need to send an email with attachment(Sending resume – doc file). Here i am sharing the function using which you can send an email with attachment using php's mail function.