title: ZendFramework - How do i declare static global constant, to have this available in my all controllers and models?
body: <p>I have 50 controllers, and 90 Models. Everywhere i was using/repeating same words 'login' and 'success'. I want to make one global constant so that i can access from anywhere in my controllers and models. How or where do you declare this following 2 line. </p>
  
  <p>Try to put this somewhere to have global access:</p>
  
  <pre><code>defined('MYFIXED_WORD_SUCCESS')
      || define('MYFIXED_WORD_SUCCESS', "success");
  defined('MYFIXED_WORD_LOGIN')
      || define('MYFIXED_WORD_SUCCESS', "login");
  </code></pre>
  
  <p>Example of repeating:</p>
  
  <pre><code>if (count($result) &gt; 0) 
  {
    $return = array(
          'flag'  =&gt; 'login',  // replace it with MYFIXED_WORD_
          'result'=&gt; 'success',// replace it with MYFIXED_WORD_
          'extra' =&gt; array(group'=&gt;$rec-&gt;group,));
  </code></pre>