Jump to:

23003 Posts in 11856 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » Best way extending / rewriting sapphire classes

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 816 Views
  • bschmitt
    Avatar
    Community Member
    22 Posts

    Best way extending / rewriting sapphire classes Link to this post

    Hi there,

    I have to adjust some little points in the HTTPResponse and Controller class cause of specific circumstances. Of course I don't want to adjust sapphire directly in the framework folder. So is there a nice way to do this via a module or something else?

    I just created an own MyHTTPResponse and MyController class which "extends" in each case the main class (HTTPResponse/ Controller). If I put these files in /myModule/code in got an error (class not found).

    Many thanks,
    Bjoern

    816 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.