title: Phalcon: how to define constant which is visible on all Controller and Model
body: <p>Anyone know how to define constants which is visible on all Controller and Model of application.</p>
  
  <p>For example, where I can defines these constants:</p>
  
  <pre><code>define('APP_CONST_ACTIVE', 1);
  define('APP_CONST_INACTIVE', 0);
  define('APP_CONST_ENABLE', 1);
  define('APP_CONST_DISABLE', 0);
  </code></pre>
  
  <p>Or should I define these constants in which class:</p>
  
  <pre><code>class WhichClass
  {
      const APP_CONST_ACTIVE = 1;
      const APP_CONST_INACTIVE = 0;
      const APP_CONST_ENABLE = 1;
      const APP_CONST_DISABLE = 0;
  }
  </code></pre>
  
  <p>I would like these constants are visible on all Controller and Model of my application.</p>
  
  <hr>
  
  <p>Let me clarify my question.  </p>
  
  <p>I want to define these constants only 1 time, and I would like to access them in all Controller, Model, and View.  </p>
  
  <p>For example in CakePHP, if in app/Config/core.php, I defined followings:  </p>
  
  <pre><code>Configure::write('ENABLE', 1);  
  </code></pre>
  
  <p>Then in all CakePHP Controller, Model, and View, I can access these constants in this way:  </p>
  
  <pre><code>Configure::read('ENABLE');  
  </code></pre>
  
  <p>So my question is: where should I define these variables which is visible on whole application with Phalcon? Maybe in <code>bootstrap</code> file, but how to do that?  </p>
  
  <p>Many thanks.</p>