Jump to content

Module Idea : Dev Tool to Keep Track of Non-Template Files and What They Do


DaveP
 Share

Recommended Posts

Firstly apologies for the convoluted thread title. This was an idea I had a while ago and was brought to mind by @dragan's recent post.

Going back to a project, I took some time to find where various bits of code were lurking - 'standard' files like init.php, ready.php, finished.php (are there any others?), 'non-template' files in /site/templates/ ('_whatever.php' type stuff) or something/somewhere else (folder inside /site/templates/ for example).

Anyhow, the idea was for a process module (custom admin page) to check these built-in locations and configurable for others, with a docblock parser, that would report what files were in use and what functions they contain.

  1. Is there anything like this already? <edit class='saveReading'>Yep, Tracy (as is so often the case) has it covered</edit>
  2. If not, is there any merit in such a tool being created (shouldn't be that hard)?

 

Link to comment
Share on other sites

  On 1/4/2018 at 2:23 PM, DaveP said:

and what functions they contain

Expand  

This part is covered by the Template Resources panel in Tracy. Perhaps it's time to parse the associated docblock and make that available as well - perhaps expandable like I have done in the Captain Hook panel?

  • Like 3
Link to comment
Share on other sites

  On 1/4/2018 at 2:40 PM, adrian said:

This part is covered by the Template Resources panel in Tracy.

Expand  

TBQHWY I hadn't ever looked at that panel before now, and it pretty much does the job I had in mind - simply tracking where stuff was happening, included file wise. Docblock stuff would be a bonus, but I would class it as a welcome addition rather than a must-have. ^-^

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...