Re: [PHP] Re: PreReq Index



Craige Leeder schreef:
I forgot to mention, the calls to setPreReq() would occur in each file
in place of an include() to get prerequisite components. IE:

try autoload()ing. what your trying to do is reinvent a wheel ...
and chances are yours will be less round.


html.php :
Ember::setPrereq( array('iOutput' => Ember::mciInterface) );

class html implements iOutput {
...
}


iOutput.php:
Ember::setPrereq( array('iIO' => Ember::mciInterface) );

interface iOutput implements iIO {
...
}

iIO.php:
interface iIO {
}


.