Category Archives: cakePHP 2.1

CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. Using commonly known design patterns like MVC and ORM within the convention over configuration paradigm, CakePHP reduces development costs and helps developers write less code.

How to validate image uploads in cakePHP 2?

The Validation class in CakePHP contains many validation rules that can make model data validation much easier. I need to validate an image resolution (min 300 dpi), ¬†upload size (max 40 Mb) and formats like .jpg, .tif, .eps, .bmp, .png, … Continue reading

Posted in cakePHP 2.1 | Comments Off on How to validate image uploads in cakePHP 2?

How to share CakePHP 2.1 core for multiple apps?

CakePHP 2.1 ¬†allows you to use one set of core files while maintaining multiple applications. Make sure the host is pointing to the correct directory like /var/www/Sites/app/webroot/. Verify mod_rewrite is in fact on. Enable mod_rewrite with: a2enmod rewrite. Set up … Continue reading

Posted in cakePHP 2.1 | Tagged , , , | Comments Off on How to share CakePHP 2.1 core for multiple apps?