1. loadModel() is method of controller and should be used there and
only there. All data retrieve must be done in controller, not view.

2. Cake knows so simple rules as country -> countries itself. No need
to edit anything, just use right words.

On Sep 16, 7:03 am, "www.landed.at" <[email protected]> wrote:
> I need to do something like the following
>
> $this->loadModel('Countrie');
> $countries = $this->Countrie->find('all');
> echo $form->select('country',$countries)
>
> error is
>
> Call to undefined method View::loadModel
>
> Also have the inflection issue as country is not plurally similar to
> countries so I canot find the inflections file to edit this. But I
> think that seems like a separate issue.
>
> thanks
--~--~---------~--~----~------------~-------~--~----~
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