Skip to content
Maciej Klemarczyk edited this page Apr 24, 2015 · 7 revisions

Module configuration

Example

    'modules' => [
        'redactor' => 'yii\redactor\RedactorModule',
    ],

Options

Module option Description
uploadDir Path to directory on web server file system (directory to store files), you can use aliases like @webroot
uploadPath Url to directory on web server (base url to access files)

🔔 Note: You need to create uploads folder and chmod and set security for folder upload reference: Protect Your Uploads Folder with .htaccess, How to Setup Secure Media Uploads

📘 More information about module configuration: http://www.yiiframework.com/doc-2.0/guide-structure-modules.html#using-modules

Clone this wiki locally