this is a repost from viewtopic.php?p=16829#p16827 - but I think it has a valid place in the feature suggestions.
I just red the blog post you mentioned ( https://bigprof.com/blog/appgini/custom ... dmin-area/ ). Wouldn't it be much easier to check for custom functions first and use AG internal functions if no custom function exists?
This way the developer would be able to create his functions in e.g. /custom (or /hooks/custom) with the same filename you are using e.g. incfunctions.php. You go ahead and include these files first and the original AG files afterwards with something like this
Code: Select all
if (!function_exists('getLoggedInUser')) {
function getLoggedInUser{
....
}
}
Olaf