BaseYii $classMap

$classMap public static property Class map used by the Yii autoloading mechanism. The array keys are the class names (without leading backslashes), and the array values are the corresponding class file paths (or path aliases). This property mainly affects how autoload() works. See also autoload(). public static array $classMap = []

BaseYii $app

$app public static property The application instance public static yii\console\Application|yii\web\Application $app = null

BaseYii $aliases

$aliases public static property Registered path aliases See also: getAlias() setAlias() public static array $aliases = ['@yii' => __DIR__]

Autoloading

Using the Yii Autoloader Class Map Using Other Autoloaders Autoloading Extension Classes Yii relies on the class autoloading mechanism to locate and include all required class files. It provides a high-performance class autoloader that is compliant with the PSR-4 standard. The autoloader is installed when you include the Yii.php file. Note: For simplicity of description, in this section we will only talk about autoloading of classes. However, keep in mind that the content we are describing he

Authorization

Access Control Filter Role Based Access Control (RBAC) Authorization is the process of verifying that a user has enough permission to do something. Yii provides two authorization methods: Access Control Filter (ACF) and Role-Based Access Control (RBAC). Access Control Filter Access Control Filter (ACF) is a simple authorization method implemented as yii\filters\AccessControl which is best used by applications that only need some simple access control. As its name indicates, ACF is an action

Authentication

Configuring yii\web\User Implementing yii\web\IdentityInterface Using yii\web\User Authentication Events Authentication is the process of verifying the identity of a user. It usually uses an identifier (e.g. a username or an email address) and a secret token (e.g. a password or an access token) to judge if the user is the one whom he claims as. Authentication is the basis of the login feature. Yii provides an authentication framework which wires up various components to support login. To use t

Authentication

Authorization Unlike Web applications, RESTful APIs are usually stateless, which means sessions or cookies should not be used. Therefore, each request should come with some sort of authentication credentials because the user authentication status may not be maintained by sessions or cookies. A common practice is to send a secret access token with each request to authenticate the user. Since an access token can be used to uniquely identify and authenticate a user, API requests should always be s

authclient\widgets\GooglePlusButton setCallback()

setCallback() public method public void setCallback ( $callback )$callback string|array Callback JavaScript function name or URL config.

authclient\widgets\GooglePlusButton run()

run() public method Runs the widget. public void run ( )

authclient\widgets\GooglePlusButton renderButton()

renderButton() protected method Renders sign-in button. protected string renderButton ( )return string Button HTML.