# Sage 9 or 10 with Kirki Customizer

**URL:** https://discourse.roots.io/t/sage-9-or-10-with-kirki-customizer/20529
**Category:** sage
**Tags:** customizer, sage
**Created:** 2021-04-05T14:21:59Z
**Posts:** 3

## Post 1 by @hallowichig0 — 2021-04-05T14:21:59Z

Hi everyone, I just want to ask if how to properly setup kirki customizer in sage 9 or 10 using namespace?

---

## Post 2 by @alwaysblank — 2021-04-05T15:37:10Z

What problems are you having? If you’re running into issues with Namespacing, you might read our blog post on the subject: [https://roots.io/namespacing-and-autoloading/](https://roots.io/namespacing-and-autoloading/)

---

## Post 3 by @hallowichig0 — 2021-04-05T15:54:41Z

Thank you for this info it helps me a lot.

I used `use Kirki` and the error app/kirki class not found was gone and everything is working fine now. But I’m not sure if this is correct or not but its working.

```
namespace App;

use Kirki;

if(class_exists( 'Kirki' )){

  Kirki::add_config( 'sage_config', array(
    'capability' => 'edit_theme_options',
    'option_type' => 'theme_mod',
  ) );
  
  /**
   * Include files for panels, section & fields.
   */
  include 'customizer/fields-header.php' ;
  include 'customizer/fields-footer.php' ;
  include 'customizer/fields-sidebar.php';

}
```

---

## Post 4 by @system — 2021-05-17T14:22:00Z

This topic was automatically closed after 42 days. New replies are no longer allowed.
