ion" id="adding-logic-to-the-controller">
<h2>Adding logic to the controller<a class="headerlink" href="#adding-logic-to-the-controller" title="Permalink to this headline">¶</a></h2>
<p>Earlier you set up a controller with a <code class="docutils literal"><span class="pre">view()</span></code> method. The method
accepts one parameter, which is the name of the page to be loaded. The
static page templates will be located in the <em>application/views/pages/</em>
directory.</p>
<p>In that directory, create two