Skip to content

Commit

Permalink
Fix 'modules' in Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jlnarvaez committed Feb 8, 2018
1 parent 42dc1b2 commit ae49d4f
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 ae49d4f

Please sign in to comment.