SUMMARY: Setting up a file structure for the code project for different main files and their included subfiles.
I started to structure the code to look something like this in the theme file:
theme folder/ functions.php code/ admin/ admin.php classes/ app.php main.php
functions.php to either include
main.php, depending on whether we’re in the admin page or not. That’s all it does, other than declare a global
$dsApp variable that will hold my Application class instance.
main.php, I have a
dseah_main() to serve as my entry point, which loads necessary files at the top. In my test case, it’s loading a skeleton application class.
I may implement a number of shortcodes for various test cases.