[eluser]faluci[/eluser]
I know it looks terrible, but that wasn't my question btw.
I thought of creating custom driver or library but I've come up with the solution as the above so far. I have the situation as the following:
1. there are over 100 dynamic require_onces. i.e. 1~100 (still growing)
2. these dynamic require_onces are used for only one controller (at the moment)
3. $this->a(); is used for all the dynamic require_onces
4. the content of function ab() varies for every dynamic require_onces, but the function name stays the same - as function ab().
5. I simplified the example but there are multiple functions in class A, and in function index()
If I make function ab(); as parallel to function a(), then I have to create call 2 require_onces (and manage 2 files for every dynamic) So I want to manage the dynamic code part in 1 file.
Any suggestion? or plz could anyone answer my original question?