Skip to content

Commit

Permalink
docs. prepare for stable
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmunir committed Oct 21, 2014
1 parent 3cd2bc8 commit 4b7c28a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion FileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@
use yii\web\NotFoundHttpException;

/**
* FileController
* Use to show or download uploaded file. Add configuration to your application
*
* ~~~
* 'controllerMap' => [
* 'file' => 'mdm\upload\FileController',
* ],
* ~~~
*
* Then you can show your file in url `Url::to(['/file','id'=>$file_id])`,
* and download file in url `Url::to(['/file/download','id'=>$file_id])`
*
* @author Misbahul D Munir <[email protected]>
* @since 1.0
Expand Down

0 comments on commit 4b7c28a

Please sign in to comment.