php - CodeIgniter won't load model on deployment machine -
i developed small application codeigniter , brought run vagrant , debian. , fine.
so i'm trying set virtual machine xubuntu 15.04. installed same packages (php apache module)
now i'm getting following error:
unable locate model have specified: person_model
this how load model:
$this->load->model('person_model');
and how model looks in models/person_model.php
<?php class person_model extends ci_model { function __construct() { parent::__construct(); } // ... }
on xubuntu i'm running php 5.6.4-4ubuntu6.2 , on debian i'm running php 5.4.41-0+deb7u1
thanks advice , help!
starting codeigniter 3.0, class filenames (libraries, drivers, controllers , models) must named in ucfirst-like manner or in other words - must start capital letter. http://www.codeigniter.com/user_guide/installation/upgrade_300.html#step-2-update-your-classes-file-names
this codeigniter 3.0 coding convention must follow. model file should models/person_model.php
.
probably use case insentive file system (host os windows or mac) vagrant shared folder . , don't use vagrant shared folder xubuntu, don't you?
anyway, problem file system, not php version nor os.
Comments
Post a Comment