View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004301 | OXID eShop (all versions) | 4.10. AutoLoader | public | 2012-08-03 15:16 | 2018-12-03 15:40 |
Reporter | tomas_liubinas | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Summary | 0004301: Module inclusion from non standard directory does not work | ||||
Description | When you include module class from non standard directory it disables the module automatically. | ||||
Steps To Reproduce | 1. define the class tesMod in testmod.php but non standard dir: <?php class testMod extend testMod_parent {} ?> 2. define module chain in config for aModules, let's say oxarticle => testmod. 3. from any place in the code execute: require_once <yourNonstandardModuleDir>."testmod.php"; In this case module is automatically disabled. | ||||
Additional Information | In above example disabling module occurs in autoload() function called on testMod_parent from testMod class declaration. it autoamtically checks for all existing classes from the module chain. As at this moment testmod class is cosidered not yet defined it disables this module. (As it thinks that testMod.php has accidently been deleted). | ||||
Tags | No tags attached. | ||||
Theme | Not defined | ||||
Browser | All | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
|
waiting for the PO decision. |
|
With version 6 we are using composer. With composer you can register own Namespaces and the target path, where your extension is located at: https://docs.oxid-esales.com/developer/en/6.1/modules/using_namespaces_in_modules.html |