# `Multitenancy.Controller`
[🔗](https://github.com/marcosgz/multitenancy_phoenix/blob/v0.1.0/lib/multitenancy/controller.ex#L1)

Helpers for base controllers that are also routed from theme routers.

    defmodule MyAppWeb.PageController do
      use MyAppWeb, :controller
      plug :put_theme_view
    end

`put_theme_view/2` swaps every view (e.g. `MyAppWeb.PageHTML`) for the
theme counterpart (`Themes.Alpha.PageHTML`) when the theme defines it.

# `put_theme_view`

# `theme_view`

Maps `MyAppWeb.PageHTML` to `Themes.Alpha.PageHTML` when it exists.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
