# Preview Theme functionality in Cakephp3

**URL:** https://discourse.cakephp.org/t/preview-theme-functionality-in-cakephp3/432
**Category:** Need Help
**Created:** [May 30, 2016, 10:11pm UTC](https://discourse.cakephp.org/t/preview-theme-functionality-in-cakephp3/432 "2016-05-30T22:11:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![incrediblex](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/incrediblex/32/199_2.png) [@incrediblex](https://discourse.cakephp.org/u/incrediblex)
#### Post date: [May 30, 2016, 10:11pm UTC](https://discourse.cakephp.org/t/preview-theme-functionality-in-cakephp3/432/1 "2016-05-30T22:11:22Z")

</div>

In my **AppController** i’m assigning the **active theme** like this:

```
$this->viewBuilder()->theme($this->Themes->active_theme());

```

I’ve created a page which shows all my themes (I’m using a **json file** for this), i want to add a preview theme functionality to every theme in my page just like _wordpress, drupal_ etc.

I’m not sure how to can i **temporarily load a theme** using app controller for **previewing purpose**.

Any help on how this functionality works and how can i do it in Cakephp would save my day.
