1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Creating a model inside the code

Discussion in 'XenForo Development Discussions' started by DroidHost, Jun 9, 2011.

  1. DroidHost

    DroidHost Well-Known Member

    when you use this code:
    PHP:
        public function getAttachmentConstraints()
        {
            return 
    XenForo_Model::create('XenForo_Model_Attachment')->getAttachmentConstraints();
        }
    is that will include our extended model ?
     
  2. Jeremy P

    Jeremy P Well-Known Member

    If you extend it via the load_class_model code listener, it should.
     
  3. DroidHost

    DroidHost Well-Known Member

    I did use that but
    some value ... yes they are changing but some of them aren't !
     
  4. ragtek

    ragtek Guest

    Do you have still the problem or is it working for you?
     
  5. DroidHost

    DroidHost Well-Known Member

    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 ...
     

Share This Page