by Kesstryl
Here are some basic ideas so you can at least get the gist of what is going on. There are three main folders you will work with while modding Mysidia. The other ones you really shouldn’t need to work in unless there is something really specific you need to add to them.
The model folder holds classes where Mysidia gets database field data and inserts them into functions called methods. Using these methods is how you will pass data around.
The controller folder holds classes that manipulate data from model classes by using the model methods (which hold your database data) and processes them for sending to views.
The view folder holds classes that generate html content from php methods. All content you end up seeing on your site run through the views.
The template folder is where everything is brought together through Smarty templates and CSS. This is where you can control the general look of your site (but not the content itself, you still need to manipulate that in the views folder).
The above 4 are where all your modding should happen. There are a few other places you can look for additional help but mainly to find additional methods you can use. You shouldn’t need to mod anything in those folders, only look through them to find methods you might find useful.
The resource folder has additional things Mysidia uses to generate a lot of the site such as the GUI classes where php is building a lot of the html for the views classes. Knowing some of these methods and how they are used can give you some additional flexibility.
The service folder has useful things like table builders, form builders, etc that are also worth understanding and knowing how they are used as they also generate html. I don’t like that they also generate inline CSS and haven’t found time to find where these inlines are generated so I can move them over to the template CSS file and turn off inline CSS via Content Security Policy meta tag.
The sections below are here to help you see specific examples of how the above works together, and to give you some starter mods to work on.