I want to create a component file which has both parent and its associated sub classes in a single file.
Something like this,
Class MyBase{
---
}
Class MySubClass Extends MyBase{
---
}
Both the class files will be wrapped in to a single class file named MyBase.php.
In this i can’t instantiate the object of child class. It throws error saying failed to open stream: No such file or directory- MySubClass.php. Tried with importing the subclass also in config file by application.components.MyBase.MyClass1.