title: How to render a cms page with default theme AND variables from controllers in OctoberCMS?
body: <p>I'm wondering how I can render a view, or display a page with my default theme in OctoberCMS, via a route that executes a function in a controller. </p>
  
  <p>If I have the following route:</p>
  
  <pre><code>Route::get('bransje', [
  'uses' =&gt; 'Ekstremedia\Cityportal\CPController@bransje'
  ]);
  </code></pre>
  
  <p>And in my controller CPController ive tried several things, like I used to with Laravel: </p>
  
  <pre><code>public function bransje() {
      $stuff = Stuff::with('info');
      return View::make('cms::bransje')-&gt;with('stuff',$stuff);
  }
  </code></pre>
  
  <p>But I cannot seem to get it to work, and I've tried to search the web, but it's hard to find answers. I have found a workaround, and that is to make a plugin component, then I can include that component and do:</p>
  
  <pre><code>public function onRun()
  {
      $this-&gt;eventen = $this-&gt;page['stuff'] = $this-&gt;stuff();
  }
  
  protected function stuff()
  {
     return ...
  }
  </code></pre>
  
  <p>Is there any way so I can make pages without using the Cms, and that are wrapped in my default theme? I've tried </p>
  
  <blockquote>
    <p>return View::make('my-theme-name::page');</p>
  </blockquote>
  
  <p>and a lot of variants but no luck.</p>
  
  <p>I know I can also do a: </p>
  
  <pre><code>==
  public function onRun()
  {
  }
  </code></pre>
  
  <p>in the start of my page in the cms, but I'm not sure how to call a function from my plugin controller via there.</p>