Yii Framework Forum: Ossassetmananger Extension For Yii - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Ossassetmananger Extension For Yii 将asset 自动部署到阿里云oss上的一个扩展 Rate Topic: ***** 1 Votes

#1 User is offline   千纸鹤 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 13-December 11

Posted 11 March 2013 - 02:45 AM

下载地址:Attached File  ossAssetManager.zip (30.28K)
Number of downloads: 21
----------------------------------------------------------------------------------------
安装方法:
1、解压后,将ossAssetManager文件夹放到扩展目录 extension

2、在配置文件的 componets 数组中新增一项:


'components'=>array(
.....................

'assetManager' => array(
'class' => 'ext.ossAssetManager.OssAssetManager',
'host' => 'oss.aliyuncs.com', //绑定了域名才修改
'bucket' => 'dfadf', //修改为你自己的bucket名称
'path' => 'assets', //保存路径 可以自由配置
'ossAccessId'=>'dfadfadsf', //oss access id
'ossAccessKey'=>'fadfad', //oss access key
),


.................
----------------------------------------------------------------------------------------
如果发现安装后失效,请尝试将缓存清理掉。(file缓存的话 清空runtime/cache 这个目录就可以了)
0

#2 User is offline   persistence 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 46
  • Joined: 02-January 10

Posted 26 March 2013 - 09:24 PM

:rolleyes:
很好!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users