Some web applications require a module to manage documents for logged in users. Yii2-docvault includes the folowing features:
- Manage document categories
- Manage documents
- Upload a new document
- Set view/modify permissions
- Check out a document
- Check in a document
- View modification logs
Screenshots ¶
- See my blogpost.
Requirements ¶
- Yii2
Installation ¶
Here is how to install Yii2-docvault using composer. Installation is a quick and easy three-step process.
Step 1: Download Yii2-docvault using composer ¶
Add the following line to the require section of your composer.json file:
"diggindata/yii2-docvault": "0.0.*@dev"
Run composer update to download and install Yii2-docvault.
Step 2: Configure your application ¶
Add following lines to the modules section in your main configuration file (e.g. config/main.php):
'modules' => [
'docvault' => [
'class' => 'diggindata\docvault\Module',
'dataDir' => '@app/data', // Alias to data directory
],
],
Step 3: Update database schema ¶
NOTE: Make sure that you have properly configured db application component.
After you downloaded and configured Yii2-docvault, the last thing you need to do is updating your database schema by applying the migrations:
$ php yii migrate/up --migrationPath=@vendor/diggindata/yii2-docvault/migrations
Resources ¶
Changes ¶
- Mar. 30, 2020 v0.1.0
- Added missing widgets/TileView
- Fixed flash messages (Alert)
- Fixed migrations
- Feb. 4, 2015 v0.0.8
- Document Permissions: removed debug
- Document: added attribute label for file
- Item Views: added button group
- Documents List/Add button: added categoryId if _GET DocumentSearch exists
- Feb. 3, 2015: v0.0.6
- Fixed Log tableName
- Permissions: added 'All Users'
- Documents: Enhanced _search form; added 'Checked Out ' icon
- Feb. 2, 2015: Initial version
Demo??
As usual, Demo site will do good to booster users
Blog gives error => NL nicht bekant.
CException
Onbekende localisatie "nl".
/usr/www/users/diggin/yii-1.1.13/framework/base/CModule.php(105)
093 /
094 Getter magic method.
095 This method is overridden to support accessing application components
096 like reading module properties.
097 @param string $name application component or property name
098 @return mixed the named property value
099 /
100 public function get($name)
101 {
102 if($this->hasComponent($name))
103 return $this->getComponent($name);
104 else
105 return parent::get($name);
106 }
107
108 /
109 Checks if a property value is null.
110 This method overrides the parent implementation by checking
111 if the named application component is loaded.
112 @param string $name the property name or the event name
113 @return boolean whether the property value is null
114 /
115 public function __isset($name)
116 {
117 if($this->hasComponent($name))
Re: Blog gives error => NL nicht bekant.
@aronbos, thanks for the info.
Can you please try again now?
I am getting this error: Class 'diggindata\docvault\Collection' not found
I had added this configuration into backend/config/main.php
`
php'modules' => [
'docvault' => [ 'class' => 'diggindata\docvault\Module', 'dataDir' => '@app/data', // Alias to data directory ], ],
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.