Welcome Guest, Not a member yet? Register   Sign In
custom Class
#1

[eluser]hugle[/eluser]
Hello everybody.

well, as usual every day, you learn smth new Smile

Now I'm playing with my old class called - domain

so I saved the file under library directory,

renamed from
Code:
class domain {
to
Code:
class MY_domain {

then in the controller:
$this->load->library('domain');

but here is a stop for me .. How do I work now?
Yearlier my procedure was :

$domain=new domain("codeigniter.com");
echo $domain->info()."<br>";

well, i'm stuck here and don't know how to move on now Smile

Any help appreciated guys !

thanks


Messages In This Thread
custom Class - by El Forum - 11-25-2008, 01:39 PM
custom Class - by El Forum - 11-25-2008, 02:17 PM
custom Class - by El Forum - 11-25-2008, 06:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB