Welcome Guest, Not a member yet? Register   Sign In
Name Collisions with autoload (best guess)
#1

[eluser]micha8l[/eluser]
Here's part of my directory structure:
Code:
application/
    models/
        _administrator/
            article_category_model.php
        article_category_model.php
    controllers/
        _administrator/
        article.php
    article.php

I $autoload['article_category_model'] using config file.

In my "application/controllers/_administrator/article" controller I have this code:
Code:
class Article extends Administrator_controller
{
    public function __construct()
    {
        parent::__construct();
    }

    public function issue()
    {
        $this->load->model('_administrator/article_category_model');

        // HERE'S WHERE IT DOESN'T WORK -- I JUST GET BLANK SCREEN
        $this->article_category_model->create_issue();
    }
}

It seems that when I call article_category_model's create issue method, CI will search for the method in "application/models/article_category_model.php" instead of "application/models/_administrator/article_category_model.php".

Please help, how can I fix this, 3 hours I've been at this!


Messages In This Thread
Name Collisions with autoload (best guess) - by El Forum - 08-08-2012, 11:24 PM
Name Collisions with autoload (best guess) - by El Forum - 08-09-2012, 01:02 AM
Name Collisions with autoload (best guess) - by El Forum - 08-09-2012, 02:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB