Answers.Body: <p>did you register the routes in your plugin's init() ?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-05-26T13:20:06.383Z
Answers.Text: ```        // Register a custom CP route
          Event::on(UrlManager::class, UrlManager::EVENT_REGISTER_CP_URL_RULES, function(RegisterUrlRulesEvent $e) {
              $e->rules['/'] = ['template' => 'putter/index'];
          });```
Answers.UserDisplayName: JMKelley
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-05-26T13:09:45.107Z
Answers.LastActivityDate: 2019-05-26T13:09:45.107Z
Answers.UserDisplayName: Bold Fish
Body: <p>I'm looking to have a basic index page for my plugin, yet I can't seem to get <code>index.html</code> working for my plugin. But when I head to <code>site.local/admin/plugin</code> it displays <code>404 Template Not Found</code></p>
  
  <p>I have the folders set up like so:
  <code>plugin/templates/index.html</code></p>
  
  <p>I've read here that CP templates automatically get set up for this folder so there's no need to define routes for it.</p>
  
  <blockquote>
    <p>Plugins get a Control Panel template root added automatically, named
    after the plugin handle, which points to the templates/ folder within
    the plugin’s base source folder.</p>
  </blockquote>
  
  <p>Am I missing something here?</p>
  
Tags: <plugin-development>
Title: Craft 3 Plugin Index No Template Found
ThreadText: # Craft 3 Plugin Index No Template Found
  
  (Asked by: username_0 on 2019-05-26)
  
  I'm looking to have a basic index page for my plugin, yet I can't seem to get `index.html` working for my plugin. But when I head to `site.local/admin/plugin` it displays `404 Template Not Found`
  
  I have the folders set up like so:
  `plugin/templates/index.html`
  
  I've read here that CP templates automatically get set up for this folder so there's no need to define routes for it.
  
  > Plugins get a Control Panel template root added automatically, named
  > after the plugin handle, which points to the templates/ folder within
  > the plugin’s base source folder.
  
  Am I missing something here?
  
  **Tags:** plugin-development
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-05-26. Score: 1
  
  did you register the routes in your plugin's init() ?
  
  > **Comments:**
  > **username_0**: ```        // Register a custom CP route         Event::on(UrlManager::class, UrlManager::EVENT_REGISTER_CP_URL_RULES, function(RegisterUrlRulesEvent $e) {             $e->rules['/'] = ['template' => 'putter/index'];         });```  
  
  ---
  
  