[eluser]eggshape[/eluser]
Hey Neverstop:
Your error is that you don't have a contructor for your class Artigos. You need to define it using
Code:
function Artigos(){
//nothing needs to go here unless you want it to be automatically called when Artigos is instantiated
}
//or
function __construct(){
//same here
}
when you write $this->Artigos->do_something() , you're telling CI there is an instantiated object with that name that has a method called do_somehing.
If you want to access methods from Artigos without instantiating it as an object, you need to use 'static public function' to define your methods and then use it like this 'Artigos::do_something()', after including the file.
You can read more at php.net