title: Rendering a component partial from code in OctoberCMS
body: <p>According to <a href="https://octobercms.com/docs/plugin/components#render-partial-method" rel="noreferrer">this section</a> of the OctoberCMS documentation, it should be possible for me to set up a directory structure like this:</p>
  
  <pre><code>pluginname
  ├── components
  │   ├── resumefilter
  │   │   ├── default.htm
  │   │   └── my-partial.htm
  │   ├── ResumeFilter.php
  │   ├── resumelist
  │   │   └── default.htm
  │   └── ResumeList.php
  </code></pre>
  
  <p>Then, I should be able to put a function in <code>ResumeFilter.php</code> like this:</p>
  
  <pre><code>function onFilterResumes()
  {
      return ['#someDiv' =&gt; $this-&gt;renderPartial('my-partial.htm')];
  }
  </code></pre>
  
  <p>Finally, a button in the <code>default.htm</code> markup:</p>
  
  <pre><code>&lt;button
      class="btn btn-success"
      data-request="onFilterResumes"&gt;
      Filter
  &lt;/button&gt;
  </code></pre>
  
  <p>The problem is, when I press the button, it says <code>The partial 'my-partial.htm' is not found</code></p>
  
  <p>I've tried it with the full path but it doesn't seem to make any difference.</p>
  
  <p>October seems to be looking in the theme partials directory for the partial because it loads if I put it in there. However, prefixing the name with <code>resumefilter:</code> to try and get it to look in the component isn't working, and the docs seem to suggest that it should be looking in the component without a prefix.</p>
  
  <p>I found <a href="https://github.com/octobercms/october/issues/839" rel="noreferrer">this bug on github</a> from 2 years ago but it looks like it was fixed.</p>