Creating a model inside the code

DroidHost

Well-known member
Licensed customer
when you use this code:
PHP:
    public function getAttachmentConstraints()
    {
        return XenForo_Model::create('XenForo_Model_Attachment')->getAttachmentConstraints();
    }

is that will include our extended model ?
 
If you extend it via the load_class_model code listener, it should.
 
I did use that but
some value ... yes they are changing but some of them aren't !
 
Hello ragtek
I found that Kair is using strange behavior in coding the attachment .... there are fragment of the code all over ... and checking and setting value also.
and being difficult to track but I did resolve the problem ...
 
Back
Top Bottom