What is the different uses between singular and plural model name?. If we have a model named Catalogue, saved as catalog.php. Then, we have a controller. If we use “$uses” variable to define which model should involved, see code bellow:
class CataloguesController extends AppController {
var $name = 'Catalogues';
var $uses = array('Hierarchy', 'Catalogue', 'Catalogues');
}
I have mentioned above, that the related model only a Catalogue.
What is the differences accessing with:
$queried = $this->Catalogues->find('all');
or
$queried = $this->Catalogue->find('all');
The difference is that the plural form of the model is invalid. Model names are always singular.