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, Ed, biapar, Willr, Ingo, swaiba

Best way extending / rewriting sapphire classes

Go to End



Community Member, 22 Posts

21 March 2009 at 1:29am

Edited: 21/03/2009 1:30am

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,