Re: Accessing Class Method
- From: RageARC <ragearc@xxxxxxxxx>
- Date: Mon, 17 Sep 2007 07:32:47 -0700
What if I statically call the other class function?
index.php:
include ('dal.php');
include ('html.php');
class main_class {
public $database = new DAL;
public $html = new HTML;
}
dal.php:
class DAL {
function method() {
# Code
}
}
html.php:
class HTML {
function method() {
# Code
DAL::method();
# Code
}
}
Does this code work???
.
- Follow-Ups:
- Re: Accessing Class Method
- From: Steve
- Re: Accessing Class Method
- References:
- Accessing Class Method
- From: RageARC
- Re: Accessing Class Method
- From: NoDude
- Accessing Class Method
- Prev by Date: Re: which is the better option for directory hashing to store large number of image files?
- Next by Date: Re: which is the better option for directory hashing to store large number of image files?
- Previous by thread: Re: Accessing Class Method
- Next by thread: Re: Accessing Class Method
- Index(es):