Questions tagged as 'yii2'

1
answer

DepDrop Widget Kartik Yii2

First consultation I do after removing the chestnuts a thousand times on this page, but I'm already somewhat desperate with a topic that should be or should be simple. Use DepDrop of the Kartik libraries for Yii2, an excellent job. I n...
asked by 09.03.2016 / 02:21
1
answer

Problem installing Yii2 via Composer

I'm trying to install my application in Yii2 via Composer but when I'm going to execute the following command in windows cmd composer self-update I get the following error composer no se reconoce como un comando interno o externo, programa o...
asked by 28.03.2018 / 03:22
1
answer

Nginx & Yii2 only with IP

I have a VPS server installed on Ubuntu Server 14.04, as a Nginx 1.9 web server and I am about to put into production a Yii2 developed project. The server is accessed by public IP and the configured of the nginx is the following form: server {...
asked by 13.02.2016 / 00:37
1
answer

Ajax call by POST executes php function twice

Good morning, I have a problem with an ajax call to a controller method. The problem is that when the method is executed, I record the same records in DB twice. I would be very grateful if anyone could shed some light on the matter. Ajax Code...
asked by 08.08.2017 / 15:32
2
answers

What this error is in PHP with SQL Server

Hello! After a long wait at the end, I have to develop a system using Yii2 and SQL Server . I downloaded XAMPP with PHP 5.6.31 and I installed SQL Server 2008 and I can not connect to the database. I have already tried down...
asked by 01.03.2018 / 15:04
1
answer

Yii2: JsonParse does not work by default

The point is that when accessing my controller Entrenamiento through the browser (URL), it returns XML format unless you specify in the request Content-type: application/json . According to the documentation this should work by defa...
asked by 05.12.2015 / 20:35
2
answers

Show only certain data in a yii2 grid?

Edito (08/22/2018): The problem is already solved, I add the corrected code and it works so that it can be used as a guide by those who need it, thanks to the user Sr1871 who was the one who gave the answer. Well I know that maybe my query ma...
asked by 14.08.2018 / 19:56
0
answers

Error sending and saving AJAX and PHP image

In the script I have the camera on and then The Code that the image takes on a canvas. I see that it returns a base64 I remove ( data:image/jpeg;base64, ) that brings the text. I'm trying: Convert base64 into a file type image Sav...
asked by 14.12.2017 / 19:44
1
answer

Save a data of the global variable $ _SESSION in another variable

Good afternoon everyone. I have a question on how to obtain and save the values of $ _SESSION especially I just want an id that brings. I put these lines of code of how I see what you have: $userLog = $_SESSION['usuario']; dd($userLog); //Con...
asked by 18.12.2017 / 23:17
2
answers

Remove text from a select with JQuery

Can you help me with a function that removes texts from two combos? The combos are the following: The problem is that by eliminating the selection of the Country combo, the other combos (State and Municipality) must be cleaned, that is...
asked by 07.02.2018 / 19:52