Commit 6624ad3d by Valentin Ts Committed by Carsten Brandt

Update authorization guide

and Remove TBD from readme.md where it is no longer needed close #5430
parent 4c843671
...@@ -90,14 +90,14 @@ Getting Data from Users ...@@ -90,14 +90,14 @@ Getting Data from Users
* [Creating Forms](input-forms.md) * [Creating Forms](input-forms.md)
* [Validating Input](input-validation.md) * [Validating Input](input-validation.md)
* **TBD** [Uploading Files](input-file-upload.md) * [Uploading Files](input-file-upload.md)
* **TBD** [Getting Data for Multiple Models](input-multiple-models.md) * **TBD** [Getting Data for Multiple Models](input-multiple-models.md)
Displaying Data Displaying Data
--------------- ---------------
* **TBD** [Data Formatting](output-formatter.md) * [Data Formatting](output-formatter.md)
* **TBD** [Pagination](output-pagination.md) * **TBD** [Pagination](output-pagination.md)
* **TBD** [Sorting](output-sorting.md) * **TBD** [Sorting](output-sorting.md)
* [Data Providers](output-data-providers.md) * [Data Providers](output-data-providers.md)
......
File mode changed from 100755 to 100644
...@@ -219,8 +219,8 @@ Building authorization data is all about the following tasks: ...@@ -219,8 +219,8 @@ Building authorization data is all about the following tasks:
Depending on authorization flexibility requirements the tasks above could be done in different ways. Depending on authorization flexibility requirements the tasks above could be done in different ways.
If your permissions hierarchy doesn't change at all and you have a fixed number of users you can create a console If your permissions hierarchy doesn't change at all and you have a fixed number of users you can create a
command that will initialize authorization data once via APIs offered by `authManager`: [console command](tutorial-console.md#create-command) command that will initialize authorization data once via APIs offered by `authManager`:
```php ```php
<?php <?php
......
File mode changed from 100755 to 100644
...@@ -6,7 +6,7 @@ Console applications ...@@ -6,7 +6,7 @@ Console applications
Yii has full featured support for console applications, whose structure is very similar to a Yii web application. A console application Yii has full featured support for console applications, whose structure is very similar to a Yii web application. A console application
consists of one or more [[yii\console\Controller]] classes, which are often referred to as "commands" in the console environment. Each controller can also have one or more actions, just like web controllers. consists of one or more [[yii\console\Controller]] classes, which are often referred to as "commands" in the console environment. Each controller can also have one or more actions, just like web controllers.
Usage Usage <a name="usage"></a>
----- -----
You execute a console controller action using the following syntax: You execute a console controller action using the following syntax:
...@@ -25,7 +25,7 @@ yii migrate/create --migrationTable=my_migration ...@@ -25,7 +25,7 @@ yii migrate/create --migrationTable=my_migration
In the above `yii` is the console application entry script described below. In the above `yii` is the console application entry script described below.
Entry script Entry script <a name="entry-script"></a>
------------ ------------
The console application entry script is equivalent to the `index.php` bootstrap file used for the web application. The console entry script is typically called `yii`, and located in your application's root directory. The contents of the console application entry script contains The console application entry script is equivalent to the `index.php` bootstrap file used for the web application. The console entry script is typically called `yii`, and located in your application's root directory. The contents of the console application entry script contains
...@@ -59,7 +59,7 @@ This script will be created as part of your application; you're free to edit it ...@@ -59,7 +59,7 @@ This script will be created as part of your application; you're free to edit it
not want to see a stack trace on error, and/or if you want to improve the overall performance. In both basic and advanced application not want to see a stack trace on error, and/or if you want to improve the overall performance. In both basic and advanced application
templates, the console application entry script has debugging enabled to provide a more developer-friendly environment. templates, the console application entry script has debugging enabled to provide a more developer-friendly environment.
Configuration Configuration <a name="configuration"></a>
------------- -------------
As can be seen in the code above, the console application uses its own configuration file, named `console.php`. In this file As can be seen in the code above, the console application uses its own configuration file, named `console.php`. In this file
...@@ -81,7 +81,7 @@ yii <route> --appconfig=path/to/config.php ... ...@@ -81,7 +81,7 @@ yii <route> --appconfig=path/to/config.php ...
> command. > command.
Creating your own console commands Creating your own console commands <a name="create-command"></a>
---------------------------------- ----------------------------------
### Console Controller and Action ### Console Controller and Action
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment