title: Query from model to Controller
body: <p>I'm learning the whole MVC type of programming. I have a MySQl Query inside a model like so:</p>
  
  <pre><code>&lt;?php
  class BlogModel extends BaseModel { 
  
      public static function dbBlog() {
          $db         = new Database(true);
          $entries    = $db-&gt;matrix('cms_m1_blog_ml');
          $this-&gt;set('data_blog', $entries);
      }
  }
  </code></pre>
  
  <p>This script worked when I had it in the controller. the view looks like this:</p>
  
  <pre><code>&lt;?php
  
  foreach($data_blog as $blog)
   { 
       echo "&lt;ul&gt;"; 
       echo "&lt;li class='name'&gt;Name:".$blog['title'] . "&lt;/li&gt;"; 
       echo "&lt;li class='content'&gt;Content:".$blog['content'] . "&lt;/li&gt;";
       echo "&lt;/ul&gt;"; 
   }
  </code></pre>
  
  <p>How do I pass the data from the model to the controller? I ave tried all sorts of things but nothing was in the right direction. I use a custom framework build by my employee but it is based on CakePHP. </p>