authclient\AuthAction $successUrl

$successUrl public property Successful URL. public string getSuccessUrl ( )public void setSuccessUrl ( $url )

authclient\AuthAction $clientIdGetParamName

$clientIdGetParamName public property Name of the GET param, which is used to passed auth client id to this action. Note: watch for the naming, make sure you do not choose name used in some auth protocol. public string $clientIdGetParamName = 'authclient'

authclient\AuthAction $successCallback

$successCallback public property PHP callback, which should be triggered in case of successful authentication. This callback should accept yii\authclient\ClientInterface instance as an argument. For example: public function onAuthSuccess($client) { $attributes = $client->getUserAttributes(); // user login or signup comes here } If this callback returns yii\web\Response instance, it will be used as action response, otherwise redirection to $successUrl will be performed. public c

authclient\AuthAction $redirectView

$redirectView public property Name or alias of the view file, which should be rendered in order to perform redirection. If not set default one will be used. public string $redirectView = null

authclient\AuthAction $clientCollection

$clientCollection public property Name of the auth client collection application component. It should point to yii\authclient\Collection instance. public string $clientCollection = 'authClientCollection'

Assets

Asset Bundles Defining Asset Bundles Using Asset Bundles Commonly Used Asset Bundles Asset Conversion Combining and Compressing Assets An asset in Yii is a file that may be referenced in a Web page. It can be a CSS file, a JavaScript file, an image or video file, etc. Assets are located in Web-accessible directories and are directly served by Web servers. It is often preferable to manage assets programmatically. For example, when you use the yii\jui\DatePicker widget in a page, it will automat

authclient\AuthAction $cancelUrl

$cancelUrl public property Cancel URL. public string getCancelUrl ( )public void setCancelUrl ( $url )

Applications

Application Configurations Application Properties Application Events Application Lifecycle Applications are objects that govern the overall structure and lifecycle of Yii application systems. Each Yii application system contains a single application object which is created in the entry script and is globally accessible through the expression \Yii::$app. Info: Depending on the context, when we say "an application", it can mean either an application object or an application system. There are t

Application Components

Bootstrapping Components Core Application Components Applications are service locators. They host a set of the so-called application components that provide different services for processing requests. For example, the urlManager component is responsible for routing Web requests to appropriate controllers; the db component provides DB-related services; and so on. Each application component has an ID that uniquely identifies itself among other application components in the same application. You

Aliases

Defining Aliases Resolving Aliases Using Aliases Predefined Aliases Extension Aliases Aliases are used to represent file paths or URLs so that you don't have to hard-code absolute paths or URLs in your project. An alias must start with the @ character to be differentiated from normal file paths and URLs. Alias defined without leading @ will be prefixed with @ character. Yii has many pre-defined aliases already available. For example, the alias @yii represents the installation path of the Yii f