Re: Collect Functions from Filenames

Posted by wizanda on 1206090826
So instead of having a single function.php file with lots of functions, you have a small function.php file that collects all functions from little files, by using their filenames as the functions to collect...with the data being in the file.
So then say you wanted a Photo web site and needed extra functions to perform the tasks required, you have a module for the pages, yet then by placing the extra functions in the functions folder, it adds those into your functions overall.
Imagine if you were the PC and each time you needed something you read through a long piece of paper to find one line, now imagine if that was a book with an index..

On writing that's made me question how we get a permanent index of these functions collected from the filenames, so then it doesn't cost extra resources at rendering time checking what function files exist, before performing the task...
So we need it having a list of functions and going only to the functions called by that filename....

This Post was from: https://www.wizanda.com/newbb/viewtopic.php?topic_id=1452&post_id=3539