bootstrap\ActiveField $enableError

$enableError public property Whether to render the error. Default is true except for layout inline. public boolean $enableError = true

bootstrap\ActiveField $checkboxTemplate

$checkboxTemplate public property The template for checkboxes in default layout public string $checkboxTemplate = "<div class=\"checkbox\">\n{beginLabel}\n{input}\n{labelTitle}\n{endLabel}\n{error}\n{hint}\n</div>"

bootstrap\ActiveField $enableLabel

$enableLabel public property Whether to render the label. Default is true. public boolean $enableLabel = true

behaviors\TimestampBehavior touch()

touch() public method Updates a timestamp attribute to the current timestamp. $model->touch('lastVisit'); public void touch ( $attribute )$attribute string The name of the attribute to update. throws yii\base\InvalidCallException if owner is a new record (since version 2.0.6).

Bootstrapping

Bootstrapping refers to the process of preparing the environment before an application starts to resolve and process an incoming request. Bootstrapping is done in two places: the entry script and the application. In the entry script, class autoloaders for different libraries are registered. This includes the Composer autoloader through its autoload.php file and the Yii autoloader through its Yii class file. The entry script then loads the application configuration and creates an application ins

behaviors\TimestampBehavior init()

init() public method Initializes the object. This method is invoked at the end of the constructor after the object is initialized with the given configuration. public void init ( )

behaviors\TimestampBehavior $value

$value public property The value that will be assigned to the current attributes. This can be an anonymous function, callable in array format (e.g. [$this, 'methodName']), an \yii\behaviors\Expression object representing a DB expression (e.g. new Expression('NOW()')), scalar, string or an arbitrary value. If the former, the return value of the function will be assigned to the attributes. The signature of the function should be as follows, function ($event) { // return value will be assi

behaviors\TimestampBehavior $updatedAtAttribute

$updatedAtAttribute public property The attribute that will receive timestamp value. Set this property to false if you do not want to record the update time. public string $updatedAtAttribute = 'updated_at'

behaviors\TimestampBehavior getValue()

getValue() protected method Returns the value for the current attributes. This method is called by evaluateAttributes(). Its return value will be assigned to the attributes corresponding to the triggering event. In case, when the $value is null, the result of the PHP function time() will be used as value. protected mixed getValue ( $event )$event yii\base\Event The event that triggers the current attribute updating. return mixed The attribute value

behaviors\SluggableBehavior isNewSlugNeeded()

isNewSlugNeeded() protected method (available since version 2.0.7) Checks whether the new slug generation is needed This method is called by getValue() to check whether the new slug generation is needed. You may override it to customize checking. protected boolean isNewSlugNeeded ( )