コード例 #1
0
ファイル: Imager.php プロジェクト: rualatngua/yii-image
 /**
  * Initializes the component.
  */
 public function init()
 {
     Yii::setPathOfAlias('image', dirname(__FILE__) . '/..');
     Yii::import('image.components.*');
     Yii::import('image.models.Image');
     self::$_thumbOptions = $this->thumbOptions;
     self::$_imagePath = $this->getImagePath(true);
     if (!isset($this->baseUrl)) {
         $this->baseUrl = Yii::app()->request->baseUrl;
     }
     $this->basePath = rtrim(Yii::getPathOfAlias($this->basePath), '/') . '/';
     parent::init();
 }