Welcome Guest, Not a member yet? Register   Sign In
Models not being located
#3

[eluser]moopa[/eluser]
[quote author="jedd" date="1259873945"][quote author="moopa" date="1259862181"]
Any page that references my models does not work (i get Unable to locate the model you have specified: videodatasource).
[/quote]

[url="http://codeigniter.com/wiki/How_to_ask_a_good_question/"]We have a guide on how to ask better questions.[/url]

It's possibly a simple case-sensitivity thing. You've declined to say what type of OS you're on, and what you're moving to, but I assume Microsoft --> GNU/Linux.

The [url="/wiki/FAQ"]FAQ[/url] contains a couple of hints on things to look out for during migration. It would be impolite to ask a question already answered in the FAQ.

You've declined to show the class instantiation line of your model, or how you're calling them from your controller, or what the filename is of the model itself.

Unsurprisingly, you need to provide more information in order to get more help.[/quote]

I grant you that my first post was a little vague. Hopefully my points below will help clarify the situation a little.

* My OS is OSX running Apache.
* Deployment server is Linux shared hosting with cpanel / apache.
* The issue is most definitely not case sensitivity.

Since my previous post, I have commented out all DAL calls to the models and got the site displaying.

The problem appears to be how the shared hosting home directory is setup. I am (obviously) not well versed on setting up apache and I want to know if I can change how my home directory is perceived as references to images, css and js files that start like so:-

Code:
background:transparent url(/common/img/myjpg.jpg) left top no-repeat;
src="/common/css/global.css";

These work fine on my local instance of Apache with one website but the path is incorrectly mapped on the shared host (presumably due to virtual directory mapping?)

On the shared host I have to use "../".

Is there a rewrite rule or another solution I can set on the root of the user folder to stop this being an issue? I feel that this is the cause of my model reference errors also.

Thanks


Messages In This Thread
Models not being located - by El Forum - 12-03-2009, 05:43 AM
Models not being located - by El Forum - 12-03-2009, 08:59 AM
Models not being located - by El Forum - 12-03-2009, 09:26 AM
Models not being located - by El Forum - 12-03-2009, 10:05 AM
Models not being located - by El Forum - 12-03-2009, 10:17 AM
Models not being located - by El Forum - 12-03-2009, 10:46 AM
Models not being located - by El Forum - 12-03-2009, 02:20 PM
Models not being located - by El Forum - 12-03-2009, 03:21 PM
Models not being located - by El Forum - 12-03-2009, 04:21 PM
Models not being located - by El Forum - 12-03-2009, 04:27 PM
Models not being located - by El Forum - 04-28-2014, 10:43 AM
Models not being located - by El Forum - 04-29-2014, 08:02 AM
Models not being located - by El Forum - 04-29-2014, 08:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB