Re: unable to load in a separate model

2009-09-16 Thread Dr. Loboto
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" wrote: > I ne

Re: unable to load in a separate model

2009-09-15 Thread brian
Use Country. Cake's Inflector can handle it. As for the rest, you should be doing it in the controller. Also, you should use find('list') for a select tag. If your model is properly associated with Country, this should be simple. Here's how I do it for an Event model: class Event extends AppMod

unable to load in a separate model

2009-09-15 Thread www.landed.at
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 cano