I was wondering how can I create a form without a model in Yii2 framework as I am creating a mailchimp signup form so a model isn't necessary the below code generates a form however as you can see it uses a model. <?php $form = ActiveForm::be...
I am working with a pre-built API (not restfull) on Yii2 Framework. It responds with JSON data and accepts requests depending on User type and credential token. Now I have to make an app that is on a different location (domain) which is causing CORS...
I have setup a basic app according to this guide (Installing Yii). This is no problem. According to the guide I have also added fxp/composer-asset-plugin globally to composer.phar. Also no problem. Now I've got the requirement to work with q.js...
I'm trying to get productname,productiondate and prodqty from production model in gridview and also the sum(prodqty) in a textbox when a particular product is selected. The gridview is populating fine. I can see the sum(prodqty) javascript alert...
I am using philippfrenzel/yii2fullcalendar and I want to show the event description. when I am using the code: <script> var JSEventClick = (function(calEvent, jsEvent, view) { // document.getElementsByClassName('.fc-title').innerH...
I have a function (getArticleByFamille) in event onchange dopDownList like this: <?= $form->field($modelFamille, 'idFamille')->dropDownList( ArrayHelper::map(Famille::find()->all(), 'idFamille', 'libelle'),...
I have a case to manage a dynamic input in yii2. So I choose this extension : wbraganca This is my code : <?php $form = ActiveForm::begin(['id' => 'dynamic-form']); ?> <div class="row"> <div class="...
I'm new here. I need help. I use a plugins called "wbraganca / yii2-dynamicform". I have a form that allows the sum of two fields (caja1 and caja2, and the result of the add is "total"). This works. But I have a problem, when I us...
I asked that question today and the user gave me best answer, but it seems that its not working. Maybe its all because i use not raw Bootstrap-slider.js but Kartik's extension. So here is what i do: <div class="col-md-4"> <...
I want to make the chart like the picture below. I made the chart below by typing data manually. Picture 1 But, I want to take data from database, but I don't know how to categorize the xAxis. I have codes like this: controller $faculty =...
©2020 All rights reserved.