This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Button Modal Confirm Popup | |
* @author ptrnov [piter@lukison] | |
* @since 1.2 | |
*/ | |
$this->registerJs(" | |
$.fn.modal.Constructor.prototype.enforceFocus = function() {}; | |
$('#confirm-permission-alert').on('show.bs.modal', function (event) { | |
//var button = $(event.relatedTarget) | |
//var modal = $(this) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load | |
$modal.modal({ | |
'show': true | |
}).load('/Banner/SlideEditModal/1/1', function (e) { | |
// this is executed when the content has loaded. | |
}); | |
remote |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Solved – PHP Warning: Module 'PDO' already loaded in Unknown on line 0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
issue [UnexpectedValueException] | |
gives fatal error : Call to undefined method Fxp\Composer\AssetPlugin\Package\Version\VersionParser::parseLinks() | |
STEP1 | |
composer selfupdate | |
composer clearcache | |
STEP2 | |
For those who still same the problem (I have ubuntu): | |
just remove directory /home/user/.composer/vendor/fxp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'editableOptions' => [ | |
'header' => 'Update Quantity', | |
'inputType' => \kartik\editable\Editable::INPUT_SELECT2, | |
'options' => [ | |
'data' => ArrayHelper::map(Unitbarang::find()->orderBy('NM_UNIT')->all(), 'KD_UNIT', 'NM_UNIT'), | |
'pluginOptions' => [ | |
'min'=>0, | |
'max'=>50000, | |
'allowClear' => true | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*==config Main==*/ | |
'components' => [ | |
'request' => [ | |
'cookieValidationKey' => 'somekey', | |
'parsers' => [ | |
'application/json' => 'yii\web\JsonParser', // required for POST input via `php://input` | |
] | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.script-tutorials.com/guide-on-creating-a-chat-room-using-jqueryphp/ | |
Step 1 | |
The basic HTML structure of the chat room will be as shown below: | |
============ | |
<div id="chat-wrap"> | |
<h1>Chat Window</h1> | |
<div id="user-name"></div> | |
<div id="chat-box"><div id="chat-row"></div></div> | |
<form id="send-message-area"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* $this->registerJs(' | |
$(document).ready(function($) { | |
$("#redrawSignature").signature(); | |
$("#redrawSignature").signature({disabled: true}); | |
$("#redrawSignature").signature({ | |
change: function(event, ui) { | |
$("#redrawSignature").signature("draw", sig); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this->registerJs(' | |
$(document).ready(function($) { | |
$("#signature1").jSignature(); | |
//$("#signature1").bind("change", function(e){ | |
//alert("teset"); | |
//var data="image/jsignature;base30,1B4_1EZ7_2P00376553_1I55300Z102_5xZ4735_1yZ1020" | |
//var datapair =("image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj48c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iMjYiIGhlaWdodD0iNDUiPjxwYXRoIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2U9InJnYigwLCAwLCAxMzkpIiBmaWxsPSJub25lIiBkPSJNIDEgNDQgYyAwLjA5IC0wLjE2IDMuNiAtNS44OCA1IC05IGMgMS42IC0zLjU1IDIuNDMgLTcuMzggNCAtMTEgYyAxLjggLTQuMTUgMy43NiAtOC4wOCA2IC0xMiBjIDEuOCAtMy4xNiAzLjkgLTYuNDQgNiAtOSBsIDMgLTIiLz48L3N2Zz4=") | |
//var datapair = $("#signature1").jSignature("getData","svgbase64"); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*---View----*/ | |
<?php | |
echo $form->field($provinsi,'PROVINCE')->dropDownList(ArrayHelper::map(Provinsi::find()->asArray()->all(), 'PROVINCE_ID', 'PROVINCE'),['id'=>'cat-id'] ); | |
echo $form->field($kota, 'CITY_NAME')->widget(\kartik\depdrop\DepDrop::classname(), [ | |
'options'=>['id'=>'subcat-id'], | |
'pluginOptions'=>[ | |
'depends'=>['cat-id'], | |
'placeholder'=>'Select...', | |
'url'=>Url::to(['/send/subcat']) | |
] |