05-15-2009, 11:46 PM
|
#2 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
|
Quote:
Originally Posted by Killswitch
What I am getting now is an error : interface components not found in file.php. Is there a special way to do this? Does the interface have to exist int he same file, or does it need to be called? I checked the manual, but their examples reside in the same file, which doesn't seem logical in my situation ( because I would have to repeat it over and over ).
|
The error means that the code is looking for an interface called components. Does the interface that you have defined have that name?
The interface needn't be in the same file as the class(es) which implements it but it does need to be included into the script at some point before the class definition.
|
|
|
|