Conventions
In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "Now, create the view with this content in basic/views/my-authentication/login.php
."
A block of code is set as follows:
<?php return [ 2 => [ 'operator', ], 1 => [ 'admin', ], ];
Any command-line input or output is written as follows:
$ curl -H "Accept: application/json" http://hostname/yiiadv/api/web/test-rest/index [{"id":1,"name":"Albert","surname":"Einstein"},{"id":2,"name":"Enzo","surname":"Ferrari"},{"id":4,"name":"Mario","surname":"Bros"}]
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.