Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

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

Best way extending / rewriting sapphire classes




21 March 2009 at 1:29am (Last edited: 21 March 2009 1:30am), Community Member, 22 Posts

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,