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

[eluser]moopa[/eluser]
[quote author="jedd" date="1259877906"]
You can see why my 'trust your accuracy' cup does not runneth overeth.
[/quote]

I'm sure you can probably see that my url was an example to provide a level of anonymity for my client... Rest assured that the url is correct and has the slash.

[quote author="jedd" date="1259873945"]
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.

Humour me - show me the filename, the 'class ... extends' line from a failing Model, and a line in your Controller that calls the Model. You may want to read up on the Model naming standards in the user guide first, though in a sense that would be cheating.[/quote]
[/quote]

No models work. Looking at the logs, everything else (including my own helper libraries) work fine.

For the sake of clarify, here is the declaration of a model:-

Code:
<?php
class ImageDataSource extends Model {
    
    function ImageDataSource()
    {
        parent::Model();
    }
?>

and here is an example in the controller. Once again, the entire application works fine on my dev machine...

Code:
// LOAD DAL
        $this->load->model('ImageDataSource');
        
        // LOAD SESSION LIBRARY AND CHECK IF THE USER HAS AN ALBUM IN SESSION
        $this->load->library('session');
        
// More code...

$current_imagealbum = $this->ImageDataSource->createAlbum($album_title,1,userid(),$mysqldate);

As stated previously, I believe the issue is with path mapping on the shared hosting. Do you have an understanding of how this is altered so that I can reference images with src="/common/img.jpg" as oppose to src="../common/img.jpg"

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