recommended directory structure user files

recommended directory structure user files

cpshartcpshart Posts: 246Questions: 49Answers: 5
edited September 2020 in Free community support

Hi

This is hopefully a very easy question for someone.

I am trying to build my system with a view to going live, I wondered if there is a recommended directory structure for user defined files when using datatables.

Currently my user defined (as opposed to system) PHP files reside in

public_html/Editor-PHP-1.9.4/controllers

but this is mixed with the standard system supplied files which is not ideal, when updating to a new version in the future etc.

I can prefix all my files with a 2 character code to isolate from system files, but it would make sense to create a separate user Directory, but is there a standard convention when doing so,

Many Thanks

Colin

Answers

  • cpshartcpshart Posts: 246Questions: 49Answers: 5

    I think it may be easier to keep the user defined PHP files in the controllers directory, so no changes to reference the datatables library file would be required

    // DataTables PHP library
    include( "../lib/DataTables.php" );
    

    I am looking at adding a 2 or 4 character code to the front of the filename to identify them as user files.

    Any upgrade to the datatables Editor PHP version would be a simple matter to copy user specific files to the new directory.

    Best regards

    Colin

This discussion has been closed.