forked from kartik-v/yii2-widgets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ActiveForm.php
40 lines (37 loc) · 936 Bytes
/
ActiveForm.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014
* @package yii2-widgets
* @version 3.4.0
*/
namespace kartik\widgets;
/**
* Extends the ActiveForm widget to handle various
* bootstrap form types.
*
* Example(s):
* ```php
* // Horizontal Form
* $form = ActiveForm::begin([
* 'id' => 'form-signup',
* 'type' => ActiveForm::TYPE_HORIZONTAL
* ]);
* // Inline Form
* $form = ActiveForm::begin([
* 'id' => 'form-login',
* 'type' => ActiveForm::TYPE_INLINE
* 'fieldConfig' => ['autoPlaceholder'=>true]
* ]);
* // Horizontal Form Configuration
* $form = ActiveForm::begin([
* 'id' => 'form-signup',
* 'type' => ActiveForm::TYPE_HORIZONTAL
* 'formConfig' => ['labelSpan' => 2, 'deviceSize' => ActiveForm::SIZE_SMALL]
* ]);
*
* @author Kartik Visweswaran <[email protected]>
* @since 1.0
*/
class ActiveForm extends \kartik\form\ActiveForm
{
}