title: Changing specific class in default.ctp
body: <p>Below is my <code>default.ctp</code> file. My question was how do I change 
    <code>class="post-content"</code> from another view or page?</p>
  
  <pre><code>   &lt;main class="main-content"&gt;
            &lt;div class="post-content"&gt; 
              &lt;?php echo $this-&gt;Session-&gt;flash(); ?&gt;
              &lt;?php echo $this-&gt;fetch('content'); ?&gt;  
            &lt;/div&gt;            
     &lt;/main&gt;
  </code></pre>