# Extend Existing Controller?

**URL:** https://meta.discourse.org/t/extend-existing-controller/266411
**Category:** Development
**Created:** [May 28, 2023, 1:59am UTC](https://meta.discourse.org/t/extend-existing-controller/266411 "2023-05-28T01:59:19Z")
**Posts on this page:** 1
**Showing post:** 21

<div class="post-metadata">

### Author: ![petermarkley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/petermarkley/32/307825_2.png) [@petermarkley](https://meta.discourse.org/u/petermarkley)
#### Post date: [May 28, 2023, 6:55pm UTC](https://meta.discourse.org/t/extend-existing-controller/266411/21 "2023-05-28T18:55:46Z")

</div>

I found this: [Add a custom per-user setting in a plugin](https://meta.discourse.org/t/add-a-custom-per-user-setting-in-a-plugin/94048)

In the comments, one user said he “patched a controller.” He has a `.js.es6` file in `assets/javascripts/discourse/initializers/` that references a method called `api.modifyClass()` …

Hmmmmmmm 🤔 Maybe I am onto something here.

---

_[View the full topic](https://meta.discourse.org/t/extend-existing-controller/266411)._
