title: findByAttributes Example
body: <p>Explanation for the use of <code>$condition</code> and <code>$param</code> in <code>findByAttributes</code> in Yii</p>
  
  <p>In most case, this is how I use <code>findByAttributes</code></p>
  
  <pre><code>Person::model()-&gt;findByAttributes(array('first_name'=&gt;$firstName,'last_name'=&gt;$lastName));
  </code></pre>