Tuesday, September 1, 2009

app::import case sensitive

Is app::import case sensitive or insenitive in its arguments,
App::import('Model',....) is same as App::import('model',.....)

From the source code it feels like case sensitive (i do not know what
three equal operator does ===)

Extract from configure.php
function __overload($type, $name) {
if (($type === 'Model' || $type === 'Helper') &&
strtolower($name) != 'schema') {
Overloadable::overload($name);
}
}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: