Welcome Guest, Not a member yet? Register   Sign In
[Modular Extension] Model bug
#3

[eluser]grisha[/eluser]
I know it is like that. I've changed it from 'TestModel', to 'Test_model', and the result of running the code, is just the same except the model class name in the error shown previously.

Controller:
Code:
<?php
class Welcome extends Controller {

    function Welcome()
    {
        parent::Controller();    
    }
    
    function index()
    {
        $this->load->model('Test_model');
        print_r($this);
        $this->load->view('welcome_message');
        $this->Test_model->A();
    }
}
?>

Model:
Code:
<?php
class Test_model extends Model {

    function Test_model()
    {
        parent::Model();    
    }
    
    function A()
    {
        echo "Bark";
    }
}
?>

When I come back to the typical architecture (that means using app/controllers and app/models without the Modular Extension Libraries) everything works just Fine, and from the

Code:
print_r($this)
I get a massive array containing all the data as usual, whih is extreamly different from that one I've included in the first post.

Here is the code that I'm talking about. Check it if you can:
http://grisha.boo.pl/clean.zip

It contains a set up CI 1.7.1 in a folder called 'clean', so just extract it in your document root.


Messages In This Thread
[Modular Extension] Model bug - by El Forum - 04-19-2009, 08:19 AM
[Modular Extension] Model bug - by El Forum - 04-20-2009, 10:49 AM
[Modular Extension] Model bug - by El Forum - 04-20-2009, 12:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB