Welcome Guest, Not a member yet? Register   Sign In
Fatal error: Call to a member function on a non-object
#8

[eluser]tonanbarbarian[/eluser]
the issue is very simple
when you load a library it is created in the controller lowercase

try this it should work
Code:
<?php
class Main extends Controller
{
    function __construct()
    {
        parent::Controller();
    }
    
    function index()
    {        
        $this->load->library("Artigos");
        $val["title"] = "Altus :: Evoluçao em Automaçao";
        $this->artigos->showArticles(); // note lowercase
        $this->load->view("mainview", $val);
    }
}


Messages In This Thread
Fatal error: Call to a member function on a non-object - by El Forum - 01-16-2008, 07:08 AM
Fatal error: Call to a member function on a non-object - by El Forum - 01-16-2008, 09:32 AM
Fatal error: Call to a member function on a non-object - by El Forum - 01-16-2008, 10:01 AM
Fatal error: Call to a member function on a non-object - by El Forum - 01-16-2008, 10:10 AM
Fatal error: Call to a member function on a non-object - by El Forum - 01-16-2008, 10:19 AM
Fatal error: Call to a member function on a non-object - by El Forum - 01-16-2008, 10:53 AM
Fatal error: Call to a member function on a non-object - by El Forum - 01-16-2008, 11:16 AM
Fatal error: Call to a member function on a non-object - by El Forum - 01-16-2008, 02:08 PM
Fatal error: Call to a member function on a non-object - by El Forum - 01-16-2008, 02:20 PM
Fatal error: Call to a member function on a non-object - by El Forum - 01-17-2008, 04:21 AM
Fatal error: Call to a member function on a non-object - by El Forum - 09-07-2012, 01:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB