Skip to content

Commit

Permalink
Merge pull request #61 from jlnarvaez/readme
Browse files Browse the repository at this point in the history
Fix 'modules' in Readme
  • Loading branch information
kartik-v authored Apr 20, 2018
2 parents 342eb41 + ae49d4f commit 89bec4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ to the ```require``` section of your `composer.json` file.
### Setup Module
Add `markdown` to your modules section of your Yii configuration file
```php
'modules' = [
'modules' => [
/* other modules */
'markdown' => [
'class' => 'kartik\markdown\Module',
Expand All @@ -67,7 +67,7 @@ Add `markdown` to your modules section of your Yii configuration file
```
You can setup additional configuration options for the `markdown` module:
```php
'modules' = [
'modules' => [
'markdown' => [
// the module class
'class' => 'kartik\markdown\Module',
Expand Down Expand Up @@ -124,7 +124,7 @@ echo MarkdownEditor::widget([
### Smarty Templates
Smarty templates can be enabled globally by setting the module params
```php
'modules' = [
'modules' => [
'markdown' => [
'class' => 'kartik\markdown\Module',
'smarty' => true,
Expand All @@ -148,7 +148,7 @@ echo MarkdownEditor::widget([
```
Note that it may be unwise to enable Smarty templates globally. You can set the module property smarty to a callable function and provide RBAC features.
```php
'modules' = [
'modules' => [
'markdown' => [
'class' => 'kartik\markdown\Module',
'smarty' => function($module) {
Expand Down

0 comments on commit 89bec4d

Please sign in to comment.