Someone has to ask: is the behavior file present on all servers? Check the permissions, also.
On Tue, Jun 23, 2009 at 9:13 PM, scm<[email protected]> wrote: > > Hello all, > > I've create a new Behavior to globally format the default MySQL > datetime to a "better" (customer requested) format. > > This behavior works just fine on my local development server, but does > NOT work on two different production servers. > > Here's part of the Controller dump from one of the non-functioning > servers: > > [Behaviors] => BehaviorCollection Object > ( > [modelName] => Event > [_attached] => Array > ( > ) > > [_disabled] => Array > ( > ) > > [__methods] => Array > ( > ) > > [__mappedMethods] => Array > ( > ) > > [_log] => > ) > > > Here's same part of the Controller dump from the functioning server: > > [Behaviors] => BehaviorCollection Object > ( > [modelName] => Event > [_attached] => Array > ( > [0] => Datetime > ) > > [_disabled] => Array > ( > ) > > [__methods] => Array > ( > [dateFormatAfterFind] => Array > ( > [0] => dateFormatAfterFind > [1] => Datetime > ) > > ) > > [__mappedMethods] => Array > ( > ) > > [_log] => > [Datetime] => DatetimeBehavior Object > ( > [settings] => Array > ( > ) > > [mapMethods] => Array > ( > ) > > [_log] => > ) > ) > > As you can see, the non-functioning version is not automatically > attaching the 'Datetime' Behavior. > > The app_model is identical on all servers, and contains the $actsAs > model class variable: > > class AppModel extends Model > { > var $actsAs = array('Datetime'); > } > > Aside from the new Behavior itself, this is the only file that's has > changed - and all 3 servers contain identical files. > > I'm stumped, at this point, as to why this behavior will not > automatically attach on 2 of the 3 servers... tried a variety of > changes, none of which produced positive results. > > Any advice would be great appreciated... > > SCM > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
