Skip to content
General Revolution Evolution Add-ons International
Login | Register | MODX.com
MODX Open Source Content Management System, Framework, Platform and More.
Find a Partner | Hosts + SaaS | Jobs | Donate
  • RegisterSign Up with the MODX Community
  • LoginUse Your MODX.com Account
  • MODX Community Forums
  • General
  • Archive
  • Original Project Team
  • Core Development & Architecture
  •  
  • new versus newObject()?#

  • 3749
    11,683
    PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!

    MODx info for everyone: http://bobsguides.com/MODx.html

    BobRay Reply #1, 2 years, 6 months ago

    Reply
    • Link to this post#1
    What's the difference?


  • 22303
    9,764
    - MODX Chief Architect

    Jason Coward | MODX Chief Architect

    jasoncoward.com | @drumshaman

    opengeek Reply #2, 2 years, 2 months ago

    Reply
    • Link to this post#2
    Quote from: BobRay at Nov 01, 2009, 02:51 AM
    What's the difference?
    xPDO::newObject() should be used to create instances of xPDOObjects because a) it takes care of making sure the class is loaded if it is in a registered package (packages in xPDO define a base model path to search for classes in), and b) takes care of passing the xPDO instance into the object for you. It's mainly just a convenience method or shortcut to the common things you would need to do to instantiate an xPDOObject.





Actions

Login to Post

Other Support Options

To file a bug or make a feature request visit our issue tracker, or you can also purchase commercial support.

Love MODX?

If you build sites for a living with MODX or just love using it, why not give back?

Information

Posted in this thread:
BobRay, opengeek

 
Back to Top

MODX Global HQ

1333 N Stemmons Fwy, Ste 110
Dallas, TX 75207
United States

+1 (469) 777-MODX (6639)

The MODX Company

  • Contact
  • Media Center
  • Careers at MODX
  • Wall of Fame
  • The MODX Blog

Sponsors

SoftLayer Firehost: Secure Cloud Hosting

Stay Connected

Read our previous email newsletters.

Twitter Facebook Google+ LinkedIn github Feeds

Privacy Policy | Terms of Service | Pixels by AKTA Web Studio© 2005-2012 MODX. All rights reserved. Trademark Policy