title: how to retrieve data from model cakephp
body: <p>I have a controller function named <code>updateoos()</code>, a model for that function <code>Outofserviceday</code> and a table named <code>outofservicedays</code>. The table has 3 fields - <code>id</code>, <code>userid</code>, <code>outofservicedays</code>.</p>
  
  <p>I want to get the out of service days from today to the last day of month
  how to write a function in <code>Outofserviceday</code> model with two arguments <code>today</code> and <code>monthedDday</code> like.</p>
  
  <pre><code>function ($today $monthedDday) { }
  </code></pre>
  
  <p>In my controller I get the two dates</p>
  
  <pre><code>$today = date("Ymd");
  $monthend=date("ymd", strtotime($today));
  </code></pre>
  
  <p><strong>I edited all my mistakes</strong></p>