unable to locate model |
i have the code working just fine on my mac but as soon as i upload it to pagoda box it cant find one of the models. The model filename is listmodel.php, the class name is Listmodel and im loading Listmodel.
listmodel.php Code: <?php if (!defined('BASEPATH')) exit('No direct script allowed'); loading model Code: <?php if (!defined('BASEPATH')) exit('No direct script allowed'); error Code: An Error Was Encountered I get Code: Forbidden dont know what else to try anymore. the file is there. Again, it works locally on my mac but when i upload it breaks. i have other models in the same folder that work just fine on the server.
File and class name should start with capital letter so..
Code: Listmodel.php after that Code: $this->load->model('listmodel'); Best VPS Hosting : Digital Ocean
(11-15-2014, 06:48 PM)bia.morton Wrote: i have the code working just fine on my mac but as soon as i upload it to pagoda box it cant find one of the models. The model filename is listmodel.php, the class name is Listmodel and im loading Listmodel. Did you really defined the class with "Class"? or is that a problem with the forum's editor? if not, try to replace in your code "Class" with "class". Website: http://avenir.ro
|
Welcome Guest, Not a member yet? Register Sign In |