I am looking for a best practise for passing $_POST and $_GET variables to template parts.
Do you create a function that holds these variables?
or do you just request them within your template files with $_POST and $_GET (I think this is kinda ugly)
PS: is there any code reference for questions like these? because I tend to create my own solutions. But I rather stick with best practices. I think everyone is developing on his own matter. Would be nice to have some guidelines