Skip to content

Latest commit

 

History

History
25 lines (23 loc) · 1.19 KB

module.md

File metadata and controls

25 lines (23 loc) · 1.19 KB

Module configure

Property

  • roles array|null Allowed user roles to access this module. Default only logged user. See https://www.yiiframework.com/doc/api/2.0/yii-filters-accessrule#$roles-detail
  • uploadFolder the directory where stored files. Default is @app/web/uploads/images. If folder not existed, roxy will auto-create it.
  • uploadUrl the url which can get folder link. Default is /uploads/images. If you are using yii2-advanced should include scheme (http://frontend.domain.com/uploads/images).
  • defaultView display type. Default is thumb
  • dateFormat Datetime format. Default is Y-m-d H:i. See: http://php.net/manual/en/function.date.php
  • rememberLastFolder would you want to remember last folder? Default is true
  • rememberLastOrder would you want to remember last order? Default is true
  • allowExtension allowed files extension. Default is jpeg jpg png gif mov mp3 mp4 avi wmv flv mpeg webm
  • checkMimeType bool check mime type of uploaded files

Example

Add to config file:

	'modules' => [
		'roxymce' => [
			'class' => 'navatech\roxymce\Module',
			'uploadFolder' => '@frontend/web/uploads/images',
			'uploadUrl' => '/uploads/images',
		],
	],