Extending Model not working on OVH Web hosting |
[eluser]Unknown[/eluser]
hi all ! I have a problem with a simple librairy in CodeIgniter 2.1.3. This librairy : https://github.com/jesseterry/CodeIgniter-CRUD-Model When i use this librairy in local with wamp (php 5.3.10), it works perfectly. but I want to use this librairy on a project hosted in OVH web hosting (French) and it return a error like this : Fatal error: Class 'MY_Model' not found in /homez.xxx/hosting/mobile/application/models/images_model.php on line 4 I have copy the My_Model.php in my ./application/core folder I have create a model who extends My_Model in my ./application/models folder (images_models) like this : Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); In my controller i have include my model : $this->load->model('images_model','imagesManager'); And i don't understand why on OVh Web hosting it not work !!! If you have an idea because I tear my hair Thanks. (sorry for my english, i French) Laurent
[eluser]InsiteFX[/eluser]
Make sure that when you upload all your files that you save them as lowercase filenames, a lot ISP's use case sentitivity.
[eluser]Unknown[/eluser]
Thank you for your reply. The problem it's the name of my file "MY_Model.php" in the core folder. I rename it "My_Model.php and it's ok ! :-) |
Welcome Guest, Not a member yet? Register Sign In |