ask a previous practice first
function me{
}
assume that this function is introduced at the beginning of every page
, but it is introduced
and I write functions as classes + namespace to use
, but each page still needs to introduce the functionality of each class
class get {
public static function me{
}
}
and the mvc I"ve seen recently decide which classes to introduce based on the router.
what are the advantages and disadvantages of these three? Does
have to be written in mvc to introduce the required functionality in the least redundant way?
or is there any other similar way to achieve the same effect?
charge
would you like to see if there will be more and more files in this way?
what if each file only does one or two things?
is this an open source?