title: Use Imagick and GD in Yii
body: <p>I'm using Yii 1.1.6
  I've coded a class that use GD and Imagick PHP extension. In mine, I declare a variable </p>
  
  <pre><code>class Myclass(){
      public function __construct()
      {
           $imagick = new Imagick();
      }
      // something more
  }
  </code></pre>
  
  <p>I put my class into component folder.</p>
  
  <p>In controller, as usual,</p>
  
  <pre><code>$image = new MyClass();
  </code></pre>
  
  <p>But yii notify me error 500: <em>include(Imagick.php): failed to open stream: No such file or directory</em>.
  I understand that means Yii doesn't recognize class and file Imagick in component folder?????</p>
  
  <p>Any idea for my problem?
  Please show me how to use Imagick and GD wright way in Yii.</p>
  
  <p>P.s: I find out <a href="http://www.yiiframework.com/extension/image/" rel="nofollow">http://www.yiiframework.com/extension/image/</a>, but, if I use that way, I'll rewrite my class, and it's just only used for Yii, I want to use my class for some projects.</p>
  
  <p>UPDATE: Sorry about my foolish, I still work well on my Mac at home and my server but at office computer, I didn't config correctly for those extension.</p>