Uploaded image for project: 'Custom (Development Kit)'
  1. Custom (Development Kit)
  2. MCUS-8

Minimize number of Extended Units in Sections folder

    XMLWordPrintable

    Details

    • 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

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dmitry Dmitry Andrejev [Intechnic]
                Reporter:
                dmitry Dmitry Andrejev [Intechnic]
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: