[eluser]psycho-vnz[/eluser]
Hi, i have few time using CI and i have my first doubt.
How i can instantiating a class that represent a entity made by me?
Example:
Code:
class Man
{
$name = 'psycho';
function Man()
{
}
function get_name()
{
return $this->name;
}
}
i want do something like this in a Model
Code:
$man = new Man();
$man->get_name();
The class Man should extend from a Model?
Where i should put the file of the class Man? Model, scripts, library?
Thanks.