codeception\BasePage $actor

$actor protected property The testing guy object protected \Codeception\Actor $actor = null

web\UrlRule $host

$host public property The pattern used to parse and create the host info part of a URL (e.g. http://example.com). See also $pattern. public string $host = null

helpers\BaseFormatConverter $juiFallbackDatePatterns

$juiFallbackDatePatterns public static property The jQuery UI fallback definition to use for the ICU short patterns short, medium, long and full. This is used as fallback when the intl extension is not installed. public static array $juiFallbackDatePatterns = ['short' => ['date' => 'd/m/y', 'time' => '', 'datetime' => 'd/m/y'], 'medium' => ['date' => 'M d, yy', 'time' => '', 'datetime' => 'M d, yy'], 'long' => ['date' => 'MM d, yy', 'time' => '', 'datetime'

web\UrlRule substitutePlaceholderNames()

substitutePlaceholderNames() protected method (available since version 2.0.7) Iterates over $placeholders and checks whether each placeholder exists as a key in $matches array. When found - replaces this placeholder key with a appropriate name of matching parameter. Used in parseRequest(), createUrl(). See also $placeholders. protected array substitutePlaceholderNames ( array $matches )$matches array Result of preg_match() call return array Input array with replaced placeholder keys

db\BatchQueryResult __destruct()

__destruct() public method Destructor. public void __destruct ( )

web\Request getPreferredLanguage()

getPreferredLanguage() public method Returns the user-preferred language that should be used by this application. The language resolution is based on the user preferred languages and the languages supported by the application. The method will try to find the best match. public string getPreferredLanguage ( array $languages = [] )$languages array A list of the languages supported by the application. If this is empty, the current application language will be returned without further proces

validators\EmailValidator $allowName

$allowName public property Whether to allow name in the email address (e.g. "John Smith john.smith@example.com"). Defaults to false. See also $fullPattern. public boolean $allowName = false

helpers\BaseHtml img()

img() public static method Generates an image tag. public static string img ( $src, $options = [] )$src array|string The image URL. This parameter will be processed by yii\helpers\Url::to(). $options array The tag options in terms of name-value pairs. These will be rendered as the attributes of the resulting tag. The values will be HTML-encoded using encode(). If a value is null, the corresponding attribute will not be rendered. See renderTagAttributes() for details on how attributes

console\Application $enableCoreCommands

$enableCoreCommands public property Whether to enable the commands provided by the core framework. Defaults to true. public boolean $enableCoreCommands = true

Uploading Files

Creating Models Rendering File Input Wiring Up Uploading Multiple Files Uploading files in Yii is usually done with the help of yii\web\UploadedFile which encapsulates each uploaded file as an UploadedFile object. Combined with yii\widgets\ActiveForm and models, you can easily implement a secure file uploading mechanism. Creating Models Like working with plain text inputs, to upload a single file you would create a model class and use an attribute of the model to keep the uploaded file insta