All Questions
1 question
3
votes
3
answers
2k
views
PHP Code base design: Single "queries.php" file, or spread queries across different php files/classes? [closed]
When I create PHP projects, is it better to put all database (e.g. MySql) queries in a single file (i.e. "queries.php")? Or is it better to place the respective queries in any "model" classes (i.e. ...