Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion classes/Jelly/Core/Meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -681,4 +687,4 @@ public function load_with($value = NULL)
return $this->_load_with;
}

} // End Jelly_Core_Meta
} // End Jelly_Core_Meta