title: how to include public resources to typo3 extbase extension
body: <p>I'm building an extension that creates a backend module that enables be_users to resize images.
  I'm trying to add / include css and javascript files by using the pageRenderer but the files are never included I can only apply css if add it directly in the fluid Template using a style tag and include the javascript file with a script tag.</p>
  
  <p>I tried something like this in the controller </p>
  
  <p><code>protected $pageRenderer;</code></p>
  
  <p>....</p>
  
  <pre><code>    $this-&gt;pageRenderer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Page\\PageRenderer');
      $this-&gt;pageRenderer-&gt;addCssFile('/typo3conf/ext/extKey/Resources/Public/css/styles.css');
      $this-&gt;pageRenderer-&gt;loadJquery();
  </code></pre>
  
  <p>also tried with a viewHelper</p>
  
  <pre><code>namespace Vendor\ExtKey\ViewHelpers;
  
  class AddJsFileViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Be\AbstractBackendViewHelper {
  
      public function render() {
          $doc = $this-&gt;getDocInstance();
          $pageRenderer = $doc-&gt;getPageRenderer();
          $pageRenderer-&gt;loadJquery();
      }
  }
  </code></pre>
  
  <p>and in my tempate</p>
  
  <pre><code>{namespace pager=Vendor\ExtKey\ViewHelpers}
  &lt;f:layout name="Default" /&gt;
  
  &lt;f:section name="main"&gt;
      &lt;pager:addJsFile /&gt;
  </code></pre>
  
  <p>...</p>
  
  <p>still nothing</p>