title: Yii: Access Model Constant in Controller
body: <p>Using Yii Framework, how can I access Model Constant in Controller?</p>
  
  <p>Model.php</p>
  
  <pre><code>...
  const STATUS_ACTIVE=1;
  ...
  </code></pre>
  
  <p>Controller.php</p>
  
  <pre><code>...
  $criteria-&gt;condition = 'status='.self::STATUS_ACTIVE;
  ...
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Fatal error: Undefined class constant 'STATUS_ACTIVE' in ... on line X
  </code></pre>