diff --git a/classes/Jelly/Core/Meta.php b/classes/Jelly/Core/Meta.php index f7fb7d8..f462c1c 100644 --- a/classes/Jelly/Core/Meta.php +++ b/classes/Jelly/Core/Meta.php @@ -143,6 +143,12 @@ public function finalize($model) // Set the name of a possible behavior class $behavior_class = Jelly::behavior_prefix().$model; + + // Set PSR-0 class name + $behavior_class = strtolower($behavior_class); + $behavior_class = str_replace('_', ' ', $behavior_class); + $behavior_class = ucwords($behavior_class); + $behavior_class = str_replace(' ', '_', $behavior_class); // See if we have a special behavior class to use if (class_exists($behavior_class)) @@ -681,4 +687,4 @@ public function load_with($value = NULL) return $this->_load_with; } -} // End Jelly_Core_Meta \ No newline at end of file +} // End Jelly_Core_Meta