I have the next classes in PHP:
class CWebApplication extends CApplication {
//...
public function processRequest(){
//...
}
and
abstract class CApplication extends CModule {
abstract public function processRequest();
//...
But it reports the follow error:
Fatal error: Class CWebApplication contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (CApplication::processRequest) in /Users/nram/Sites/ryl/framework/web/CWebApplication.php on line 10
CApplicationis defined is a) not saved or b) exists in different versions? Maybe the implementation of `CWebApplication::processRequestis not visible, maybe hidden by a conditional or a syntax error? What if you put a syntax error in there?processRequestmethod in CModule with different arguments? Who knows. NRAMs first step should probably be commenting out the abstractprocessRequestmethod to confirm that the error is still produced.ProcessRequestwas defined inCModulethen the error message would refer to that function... But you are right, it is certainly worth keeping that class in mind as well.CWebApplication::processResultis not interpreted! So ask yourself: why not? Most likely it is hidden somehow... Maybe the class definition is closed beofre? Often happens when the indentation levels are borked...