An ordinary yet useful piece of hack to the way the cakephp pagination’s pages “showing page” parameter is displayed. As default, we are used to use $paginator->counter() method which gives us a counter string for the paged result set like…
Author: Arvind Kumar
Delete SVN files in Linux or Windows
Sometimes you checkout a recent API source code via some SVN client to your local system and thereafter want to remove SVN files from the directory structure. Here are the different ways to remove SVN files from your linux or…
Full-text search in MySQL
Normally, most of us use “SELECT * FROM table WHERE field1 LIKE ‘%$keyword%’” OR field2 LIKE ‘%$keyword%‘ ..etc” to search our table and get results. This is slow and inefficient approach, as it does return all (too many) rows in…
Cakephp important facts you must know – Part 2
CakePHP comes with a bunch of useful helpers and components which provide user handy tools to process and manipulate data. These helpers are not only the valuable assets for the framework user, but can be of great help to someone…
Spliting CSV (comma seperated) entry grouped by double quotes
By using fgetcsv function we can have well formatted output for csv data without any pain. If you don’t want to use fgetcsv function for some reason and your CSV comma separated entries may contain comma inside except the delimiters,…
To find mysql recodrs between specific date range based on start date and end date fields
While working on a report generation system i had to perform a query to check whether records exist in ‘reports’ table between a date range received from two form fields “start_date” and “end_date”. To make it more specific i will…
How to remove meta tag “generator” in Joomla 1.5
On a page that is generated by Joomla, by default you will always see a meta tag like following <meta name=”generator” content=”Joomla! 1.5 – Open Source Content Management” />
Joomla Direct Access to This Location Is Not Allowed Error
After installing Joomla! 1.5, i encountered the following warning message saying “Direct Access to this location is not allowed” when changing the template to which i just downloaded from www.siteground.com. I compared the template files with default templates bundled with…
How to install IE7 and keep IE6 in XP
Steps to Install IE7 and Keep IE6 as well Download and install IE7 from Microsoft Website. Installing IE7 will remove IE6 from your system. Don’t worry we will bring it back in a moment. Download Multiple IE installer for different…
Error handling in cakephp
Error handling in CakePHP is pretty simple and straight forward. While developing in CakePHP with debug value set to > 0 (Configure::write(‘debug’, 1); in app/config/core.php) you might have encountered error messages something similar to this: