Create a controller in your extension and have it inherit from
ApplicationController.  Put all of the code that you want to keep from
ApplicationController and put it in there.  Then, change all of your
controllers to inherit from this controller, rather than from
ApplicationController.

This will let all of your controllers inherit these methods you want
to share, without polluting Radiant's ApplicationController class.

Jamey


On Thu, Sep 18, 2008 at 10:34 PM, Andrew Kaspick <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have an existing application that I'm converting to a Radiant
> extension and I was wondering what the best thing to do is with respect
> to code I have in my existing applications ApplicationController and
> ApplicationHelper?  I can't redefine the ApplicationController, but I'd
> like to take some of the code I have in it and "extend" Radiant's
> ApplicationController with my own custom code since all of my
> application controllers already derive from ApplicationController.
>
> Any recommendations on the approach to take?
>
> Thanks,
> Andrew
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Radiant mailing list
> Post:   Radiant@radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to