Shared Hosting Environment

Deploying a basic project template Deploying an advanced project template Shared hosting environments are often quite limited about configuration and directory structure. Still in most cases you can run Yii 2.0 on a shared hosting environment with a few adjustments. Deploying a basic project template Since in a shared hosting environment there's typically only one webroot, use the basic project template if you can. Refer to the Installing Yii chapter and install the basic project template lo

bootstrap\InputWidget

All Classes | Properties | Methods Inheritance yii\bootstrap\InputWidget » yii\widgets\InputWidget » yii\base\Widget » yii\base\Component » yii\base\Object Implements yii\base\Configurable, yii\base\ViewContextInterface Uses Traits yii\bootstrap\BootstrapWidgetTrait Subclasses yii\bootstrap\ToggleButtonGroup Available since version 2.0.6 Source Code https://github.com/yiisoft/yii2-bootstrap/blob/master/InputWidget.php InputWidget is an adjusted for bootstrap needs version of yii\widget

Controllers

Actions Routes Creating Controllers Creating Actions Controller Lifecycle Best Practices Controllers are part of the MVC architecture. They are objects of classes extending from yii\base\Controller and are responsible for processing requests and generating responses. In particular, after taking over the control from applications, controllers will analyze incoming request data, pass them to models, inject model results into views, and finally generate outgoing responses. Actions Controllers a

helpers\BaseHtml activeRadioList()

activeRadioList() public static method Generates a list of radio buttons. A radio button list is like a checkbox list, except that it only allows single selection. The selection of the radio buttons is taken from the value of the model attribute. public static string activeRadioList ( $model, $attribute, $items, $options = [] )$model yii\base\Model The model object $attribute string The attribute name or expression. See getAttributeName() for the format about attribute expression. $it

widgets\MaskedInputAsset $depends

$depends public property public $depends = ['yii\web\YiiAsset']

bootstrap\Tabs init()

init() public method Initializes the widget. public void init ( )

gii\generators\crud\Generator $searchModelClass

$searchModelClass public property public $searchModelClass = ''

mongodb\gii\model\Generator $databaseName

$databaseName public property public $databaseName = null

captcha\CaptchaAsset $js

$js public property public $js = ['yii.captcha.js']

gii\console\GenerateAction generateCode()

generateCode() protected method protected void generateCode ( )