public function getFullName()
{
return $this->name . ' ' . $this->lastname;
}
'class'=>'\kartik\grid\DataColumn',
'attribute'=>'organizer_id',
'value'=> 'fullName;
],
'value' => function($model){
return $model->getFullName()
}
[['greger','egrerg','gergerg','egerge'], 'string'],
['greger', 'string'],
[$this->attributes(), 'string']
/* отключает использование jquery, bootstrap из "коробки" */
'assetManager' => [
'bundles' => [
/* 'yii\web\JqueryAsset' => [
'js'=>[]
],*/
'yii\bootstrap\BootstrapPluginAsset' => [
'js'=>[]
],
'yii\bootstrap\BootstrapAsset' => [
'css' => [],
],
],
],
'yii\web\JqueryAsset'
, то отключится и jquery [
'label' => 'Вниз',
'url' => false,
'options' => [
'onclick' => '(function(){
$("html, body").animate({scrollTop: "2920px"}, 1500)
})();'
],
],
'assetManager' => [
'linkAssets' => true,
],
$.post('../server/web/index.php?=customers/add',data, function (data) {
alert(data);
});
$.post(Url::to('customer/add'),data, function (data) {
alert(data);
});
ибо инфа, которая будет поступать идет в формате text:text
и нужно, что бы text1 был одной переменной, а text2 был другой.
imagestring($img2, 2, $width/2-imagefontwidth(2)*strlen($credits)/2, $height-2, $credits, $background);
$img2=imagecreatetruecolor($width, $height+($show_credits?12:0));
$foreground=imagecolorallocate($img2, $foreground_color[0], $foreground_color[1], $foreground_color[2]);
$background=imagecolorallocate($img2, $background_color[0], $background_color[1], $background_color[2]);
imagefilledrectangle($img2, 0, 0, $width-1, $height-1, $background);
imagefilledrectangle($img2, 0, $height, $width-1, $height+12, $foreground);
$credits=empty($credits)?$_SERVER['HTTP_HOST']:$credits;
imagestring($img2, 2, $width/2-imagefontwidth(2)*strlen($credits)/2, $height-2, $credits, $background);
Почему так? Вторая форма- копия первой.
product_id int(11) primaryKey
size_id int(11) primaryKey
Сейчас в мыслях сделать чекбоксы по нужным размерам и поставить в _form, вопрос в том как их обрабатывать
echo Yii::$app->settings->get('phone');
foreach($model as $key => $value){
echo $key . ' - ' . $value;
}
$this->render('includes/calc-form', ['model' => $model, 'dimensions' => $dimensions, 'idForm' => 'BottomForm'])
$form = ActiveForm::begin([
'id' => $idForm,
'enableAjaxValidation' => true,
]);