Skip to main content
Home
Nicholas Mangold

Main navigation

  • About
  • Projects
  • Blog
  • Contact
User account menu
  • Log in

Breadcrumb

  1. Home

CakePHP

CakePHP notempty validation error

I ran into the following warning while using a validation rule in CakePHP: 

Warning (2): preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash [CORE/cake/libs/model/model.php, line 2431] 

The problem was I spelled the validation rule incorrectly. I used 'nonempty' instead of 'notempty'. The correct usage is:

var $validate = array(
  'description' => array('notempty'),
);

If you experience this error, then make sure all built in validation rules are spelled correctly.

  • Read more about CakePHP notempty validation error
  • 1 comment
  • Add new comment

Introduction to CakePHP

I discovered the CakePHP framework only several weeks ago, and I'm already creating useful web applications with little effort. After briefly looking at several PHP frameworks, I chose to start learning CakePHP because I could easily find documentation on getting started. Once I learned how to use the bake feature to automatically build a skeleton for my application, I was hooked.

  • Read more about Introduction to CakePHP
  • 3 comments
  • Add new comment
CakePHP

Certifications

Badge for the Acquia Certified Developer - Drupal 7 certification
Badge for the Acquia Certified Front End Specialist - Drupal 7 certification
Badge for the Acquia Certified Back End Specialist - Drupal 7 certification
Badge for the Acquia Certified Grand Master - Drupal 7 certification

Recent Projects

Argonne National Laboratory

Screenshot of the Argonne National Laboratory homepage

Texas OAG

Screenshot of the Texas OAG homepage

Siemens PartQuest

Screenshot of the  Seimens PartQuest homepage

DODEA

Screenshot of the DODEA homepage
View more projects

Recent blog entries

  • How to use sudo with Touch ID on macOS Sonoma 14.x and above
  • Drush throws an "Access denied; you need (at least one of) the PROCESS privilege(s)" error message
  • Troubleshooting "ERROR 1227 (42000) at line 18: Access denied; you need (at least one of) the SUPER privilege(s) for this operation"
  • How to set up a local Drupal environment
  • How to use sudo with Touch ID on a Mac
View more blog entries
RSS feed
Powered by Drupal