From 9a574d7e65d425e69d2e064c6264fde7dd83ad83 Mon Sep 17 00:00:00 2001 From: Dmitry Erofeev Date: Fri, 25 Mar 2016 22:56:47 +0300 Subject: [PATCH] Update docs --- CHANGELOG.md | 2 +- LICENSE.md | 2 +- docs/README.md | 3 ++- docs/faq.md | 19 +++++++++++++++++++ 4 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 docs/faq.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 2186ed63b..c0fc9ffc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # CHANGELOG -## 1.0.0-alpha [Work in progress] +## 0.9.6 [Work in progress] - `enh` Support for custom `admin` role via access control rule out of the box #510 (dmeroff) - `fix` Removed ability to register a new account via social network when registration is disabled #512 (dmeroff) diff --git a/LICENSE.md b/LICENSE.md index f7777c89c..c6347f0ad 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,4 +1,4 @@ -Copyright (c) 2013 Dektrium project +Copyright (c) 2013-2016 Dektrium project Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/docs/README.md b/docs/README.md index f2602bd18..d85e84ce1 100644 --- a/docs/README.md +++ b/docs/README.md @@ -2,7 +2,7 @@ Yii2-user documentation is licensed under the [CC BY 4.0](http://creativecommons.org/licenses/by/4.0/). -© [Dektrium project](http://github.com/dektrium/) 2013 - 2015 +© [Dektrium project](http://github.com/dektrium/) 2013 - 2016 ## Getting Started @@ -12,6 +12,7 @@ Yii2-user documentation is licensed under the [CC BY 4.0](http://creativecommons - [Troubleshooting](troubleshooting.md) - [Usage with Yii2 advanced template](usage-with-advanced-template.md) - [Console commands](console.md) +- [F.A.Q.](faq.md) ## Overriding diff --git a/docs/faq.md b/docs/faq.md new file mode 100644 index 000000000..cb2ae5850 --- /dev/null +++ b/docs/faq.md @@ -0,0 +1,19 @@ +# Frequently Asked Questions + +## How to change controller's layout? + +You can change controller's layout using `controllerMap` module's property: + +```php +'modules' => [ + 'user' => [ + 'class' => 'dektrium\user\Module', + 'controllerMap' => [ + 'admin' => [ + 'class' => 'dektrium\user\controllers\AdminController', + 'layout' => '//admin-layout', + ], + ], + ], +], +``` \ No newline at end of file