Daniel Hood
Well-known member
I'm about make an addon that makes use of a new function I'm going to add to the User Model. I don't imagine anyone else using it. I know the common practice is to extend using the proxy system, but I don't think it's necessary to load my class every time the user model is called upon, so I'm considering using
and then calling
instead of calling the XenForo Model. I just want know if people are going to view this as bad practice? I'm basically wanting to not sacrifice performance where it's not really needed (which is anywhere besides my addon).
PHP:
class My_Model_User extends XenForo_Model_User
and then calling
PHP:
$model = XenForo_Model::create('My_Model_User');