-
Type: Bug Report
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 1.1.2-B1
-
Fix Version/s: 1.1.2-RC1
-
Component/s: General
-
Labels:None
-
External issue URL:
-
Change Log Message:Minimize number of extended Units in "sections" folder
-
External issue ID:1007
-
Copy Issue Key:
-
Patch Instructions:
We have recently came across the issue when in some projects we have too many PHP files in a single Units/Sections folder of Custom module. As you might know this folder contains Extended classes which are used to override default functionality of In-Portal. As a result it's getting very hard to quickly locate necessary files once you reach 20+ files in there, plus they all start with e_OriginalFileName.php
At this point, we should throughly discussion all options of making this simpler to work with. I ask everyone (including Intechnic employees) to participate in this critical decision making process.
[B]Solution:[/B]
No CORE changes required here!
Under Units/Sections we create a sub-folders for each corresponding Unit name (that are extending) and put replacement files inside.
Example:
- it was - /modules/custom/units/sections/e_order_eh.php
- it will be - /modules/custom/units/sections/orders/e_order_eh.php
Do all Extended Units for Custom module like this.
- mentioned in
-
Wiki Page Loading...