I am trying to organize the models in my CakePHP application, right now
I have some 25 models sitting in the same folder on the server
(/wwwroot/app/models/). What I would like to do is to create
sub-folders under the models folder and then categorize the models into
respective folders in order to make it easier to find the necessary
models we want to edit. For example, I will put all User, Group, and
Role models under the 'admin' folder, while the Company, Contact, and
Profile models will be stored in the 'clients' folder.
The problem I am having with this is that once we have models stored in
the sub-folders, I am unable to load them from the controller. I am
using the following code to load the models:
var $users = array('util/FileManager');
I am trying to load a model called FileManager.php stored under
/wwwroot/app/models/util/
However, I receive this error message whenever I try to load the model
using the code above:
Fatal: Unable to load model FileManager
Fatal: Create Class:
<?php
class FileManager extends AppModel
{
var $name = 'FileManager';
}
?>
in file : app\models\file_manager.php
Any idea what I am doing wrong?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---