Tuesday, September 1, 2009

Re: app::import case sensitive

Sensitive, sensitive - as all other Cake functions.

"$a === $b" is strict equality, true only when type and content of
arguments are same. http://www.php.net/manual/en/language.operators.comparison.php

On Sep 2, 12:49 am, abc <sudmo...@gmail.com> wrote:
> 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: