That was it.  Amazing.  Thanks.

On Jun 16, 6:31 am, "Dr. Loboto" <[email protected]> wrote:
> Check models filenames - they must be lowercased. Same about all other
> cake files.
>
> On Jun 16, 11:41 am, CharlesTMunger <[email protected]> wrote:
>
> > I have developed a site on my windows machine and it is working
> > great.  I uploaded the entire cake directory to my ubuntu server and
> > it appears to be working ok, except that it seems that models are not
> > being accessed.
>
> > For example, first I noticed that the validation methods weren't
> > working.  I also noticed the model relationships are not being loaded
> > because this function "$this->Order->User->read()" generates the
> > following error:
>
> > "Fatal error: Call to undefined method stdClass::read() in /var/www/
> > Cake/app/controllers/orders_controller.php on line 50"
>
> > Please note that this function and the model validations were working
> > perfectly on my development (windows) site.
>
> > I started playing with the model classes and realized that they were
> > not being loaded at all.  For instance, I can write random characters
> > in the middle of the model files, such as:
>
> > <?php
> > asdfasdfasdfadsfadfadfasdfasfasdfasdfasdfadsf
> > Class User extends AppModel {
> > asdfasdfasdfasdfasdfasdfasdfasdfassfdasfadsf
> >         var $name = 'User';
> >         var $hasOne = array('Profile', 'Order', 'Billing');
> >         var $hasMany = 'Contact';
>
> > asdfasdfasfasdfasdfasdfadsfasdfadsfasdadf
> >         var $validate = array(
> >         'email' => array('rule' => 'isUnique', 'message' => "Sorry,
> > this email address has already been registered."),
> >         'password' => array('rule' => array('minLength', '6'),
> > 'message' => 'Password must be at least 6 characters long.'),
>
> >         );
>
> > }
>
> > ?>
>
> > yet the behavior does not chance.  I can even erase the models folder
> > and the behavior remains constant.  The only conclusion I have come to
> > is that my models are, for some reason, not being loaded at all.
>
> > Any ideas as to why my models are not being loaded?
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to