CI On Subdomain Configuration? |
Is the configuration for installing CI on a subdomain any different?
Everything works fine when developing on my localhost, but when I move on to my server it can't find my models. My thought was maybe something to do with the subdomain. I set up the Base URL as the subdomain, but still no luck. Is there something special to do here? (09-02-2015, 07:57 AM)johnhalbert Wrote: Is the configuration for installing CI on a subdomain any different? I think The configuration is the same. How do you know that the problem come from of yours models ? May be you forget to set up your file database.php located in folder config.
CI is giving me an error: An Error Was Encountered - Unable to locate the model you have specified: Appointment
This works fine on localhost, and yes the database.php is configured properly. My thought was CI was looking for the file in the wrong place, possibly on the primary domain. Don't know if this has something to do with mod rewrite rules. Those are: Code: <IfModule mod_rewrite.c>
For me it's only a problem with the model: CodeIngniter doesn't find it... so why ?
when you search your problem with google you have some case like you: it's a problem of filenaming convention in codeigniter 3 class file names now must be Ucfirst and everything else in lowercase link here But it's possible it's another thing but verify before it was not a problem with the name of your model.
Ci isn't looking for files on a "domain", it uses the filepath so everything should still be the same unless you've change your directory structure. As suggested above, check to see if the classnames are ucfirst like CI3 requires.
|
Welcome Guest, Not a member yet? Register Sign In |