All posts by Arvind Kumar

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 try to explain it with the help of an example. Continue reading

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 I compared the template files with default templates bundled with 1.5 package and found that configuration files params.ini was missing in my downloaded one. Continue reading

How to use multiple validation rule sets per model in cakephp

As default we have single var $validate rule set in the model class which is triggered on each save() method call while saving form data. This is quite logical and sufficient for single form fields to validate but what if we have another form with somewhat different fields which we want to post and validate? As an answer i know of three different approaches. Continue reading