protected function createImageSymlink() {
        $image_dir = Yii::getAlias('@pages') . '/images';
        if(is_dir($image_dir)) {
            if(!is_link(Yii::getAlias('@app/web').'/images')) {
                $this->stdout("Creating images symlink\n\n", Console::FG_GREEN);
                symlink($image_dir, Yii::getAlias('@app/web').'/images');
            }
        }
    }
protected function createImageSymlink() {
        $image_dir = Yii::getAlias('@pages') . '/images';
        if(is_dir($image_dir)) {
            if(!is_link(Yii::getAlias('@app/web').'/images')) {
                $this->stdout("Creating images symlink\n\n", Console::FG_GREEN);
                symlink($image_dir, Yii::getAlias('@app/web').'/images');
            }
        }
    }
protected function createImageSymlink ( ) { $ image_dir = Yii :: getAlias ( '@pages' ) . '/images' ; if ( is_dir ( $ image_dir ) ) { if ( ! is_link ( Yii :: getAlias ( '@app/web' ) . '/images' ) ) { $ this -> stdout ( "Creating images symlink\n\n" , Console :: FG_GREEN ) ; symlink ( $ image_dir , Yii :: getAlias ( '@app/web' ) . '/images' ) ; } } }
Creates a symlink from the images directory in content to the
public web directory
Creates a symlink from the images directory in content to the public web directory