Questions tagged as 'yii2'

1
answer

SQLSTATE [HY000]: General error: 1 no such table: contract Failed to prepare SQL: SELECT * FROM 'contract'

I'm using yii2 for a small project, I'm using sqlite to persist the data. So that's where the problem is. Any table I create in sqlite yii2 does not recognize, nor by using the GII to create the models. Interesting is that it plugs into the bank...
asked by 07.12.2018 / 19:14
0
answers

Error associating a value with a foreign key

I am attaching a value obtained from the User table to an FK, however the return I have is:    protocol. fk_protocol "is not a column name and can not be used as a filter public function actionAddProtocolo() { $model = new Protocolo(...
asked by 18.12.2018 / 14:01
0
answers

Error using kartik FileInput for multiplu upload

I'm using lib Kartik in my project with the Yii 2 Framework . I have a form where I can add one or more files. As I show in the image below: However,whenusingkartiktomultiplyupload,itonlysends1file.Form:<divclass="row"> <a class=...
asked by 20.11.2018 / 15:06
0
answers

Problem with date in Yii2

I have a very annoying problem with yii2. I am able to do the insertion until 12/12 of the year that I want, but when I put the day above 13 it locks as empty and inserts in the bank the value 1970-01-01. I'll put the codes in the form, the mode...
asked by 07.11.2018 / 14:25
0
answers

How to store / br and \ n in the database, and display in HTML then when it is called?

I'm storing the description of an offer in the ofe_desc attribute , but even though in TextArea I insert break lines, bank and HTML (when I try to collect the data), they are all shown in a single line. Following codes: <!-- Mostra na...
asked by 29.10.2018 / 20:07
0
answers

problem with gridviews button delete this with problem in post

Good afternoon, I'm having trouble changing my grid views. This is old gridviews: <?= GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class...
asked by 01.11.2018 / 18:11
1
answer

Return of a Stored Procedure

I have an X action in my application which, when it is executed, triggers a stored procedure in the database that generates a insert in a table. So far, so peaceful. What I'm needing is a way that when this stored procedure is exec...
asked by 29.08.2018 / 14:06
1
answer

Codeception's see () method with Yii2 does not display the entire content of the page

Hello! I'm testing a PHP system (7.2.1) that uses the Yii2 framework, and for that, by default I'm using codeception. When writing functional tests, several methods are not working as expected. Among them is the see () method that should fetc...
asked by 22.05.2018 / 21:33
0
answers

YII2 Modal Ajax

Good morning! I'm a bit new in terms of programming, even more so in Yii2, and I know there are some guides on how to use Ajax in Yii2, but they are few and I still can not understand it easily, even without Yii2 I do not understand ajax very mu...
asked by 22.11.2017 / 11:59
1
answer

put a div inside a function in php

I have this command that does the check in the database and verifies that the user is blocked, in case it shows an error message, if it is not locked it continues the normal execution. What I am wanting is when he does the check change the error...
asked by 19.10.2018 / 20:14