Scripts

Scripts
There are many ways to extract data from XML. Some uses jQuery, JSON and Ajax. I found myself in simpler way, using PHP. I have here a demo XML response from one of the API's which is Cake Affiliate...
There's a cool jQuery plugin that will allow you to format input text to add comma or decimals for currency purposes. The plugin is very useful and easy to set up. You can download autoNumeric at gitHub. You can view the complete documentation at...
If you want to learn how to save data first to your precious database before redirecting to PayPal then stick around. Sometime you want to save the information entered in your form before redirecting to PayPal payment. The problem with...
The code below will use Bootstrap Pagination in CakePHP. It won't work if you don't have Bootstrap embedded in your application. This works in CakePHP 2.x. Just copy the code below and replace it to your current pagination component in cakePHP. Note:...
The code below is a simple snippet that will allow you to implement or use Zurb Foundation pagination in CakePHP 2.x. Create a new element and name it pagination.ctp. Copy the code below to pagination.ctp Use the element you created by invoking to...
There are times when you want to display snippets of your codes. This post will teach you how to highlight code syntax in Blogger's posts. In your dashboard go to Template In the "Live on Blog" click "Edit HTML" Inside the <head></head>...
This MySQL Snippet will make the first letter of any text into uppercase. This may come in handy in your future work and might as well worthy of sharing.
If you don't want to catch all errors individually, why not use an Array() of errors you might encounter? This function accepts an array of errors, loop through each of them then return it and display.  
This is the continuation for Uploading Multiple Files in CakePHP. This lesson covers downloading of files being uploaded to your server. All we have to do is add the custom function below in your AttachmentsController. The parameter will the function what...
THIS WORKS WITH CAKE 2.x There are many plugins available on the internet for attaching files. This custom made script will give you idea on how to attach multiple files. In this script, we have a model Attachment and Document. Attachment...