Questions tagged as 'yii2'

2
answers

Protect folder in apache [closed]

Good afternoon Can this be done? I have an apache server with an application developed in php (yii2), my "problem" is as follows, the app has validation by username and password, if you are logged in the system you can access a page where vid...
asked by 25.05.2017 / 22:02
2
answers

Reduce input text width

I want to reduce the width of my input text. The input covers the entire width of the page, how can I reduce it? This is the code with which I show the input text: <div class="form-group"> <?= $form->field($model, "userna...
asked by 02.03.2018 / 20:09
1
answer

Syntax error when creating PHP function

Good day, I have this problem when running a function in PHP, if someone can help me, I thank you in advance public function actionIndex() { // ejecución de la tarea de etl $job = new Job(); Job::start()...
asked by 10.03.2018 / 05:08
1
answer

Problem using $ this- Error: Using $ this when not in object- Yii2

I am currently using the framework yii2 , this one has a code generator called gii. When using the gii to generate the model, view and controller there is no problem, I create the 3 without problem, the real problem is when I want to see the re...
asked by 25.04.2018 / 14:19
1
answer

SQL Server PHP PDO exception: could not find driver

I am trying to connect to a database in SQL Server 2008 from Yii2. My version of php is 5.6.31 This is my configuration file in db.php return [ 'class' => 'yii\db\Connection', 'dsn' => 'mssql:host=127.0.0.1;dbname=softw...
asked by 01.03.2018 / 07:15
1
answer

Error trying to connect Yii2 with SQLite

I am trying to connect my application in Yii2 with a SQLite database but every time I try to access my application I get the following error: The configuration for the "db" component must contain a "class" element. This is how I have my datab...
asked by 24.02.2018 / 05:15
1
answer

how to make yii2 generate two buttons in a modal on the footer side?

I have a Modal that by clicking on delete, it shows a warning dialog box to eliminate, the problem is that I have a single button and I would like to add another one that says cancel, likewise I would like to add a color to the modal header, but...
asked by 12.10.2017 / 18:24
1
answer

The merchant_order notification arrives but not the payment in the sandbox for basic checkout

Am I getting bad notifications or is it a sandbox error? Once I do an operation in the sandbox I see it as "paid" and I get the following notifications "POST / mercadopago / ipn? topic = merchant_order & id = 467321793 HTTP / 1.1" 404 8277...
asked by 06.03.2017 / 18:29
0
answers

Yii2 user is in cache for a different application

The title may not explain much but here I clarify things, I have two different applications but both with the same structure and logic for users but in different databases, the problem is when I log in one of the applications if the id of that u...
asked by 23.12.2018 / 00:42
0
answers

Connect OpenLDAP Zimbra with yii2 using Edvlerblog \ Adldap2

I have not managed to connect OpenLDAP with Yii2 using the plugin Edvlerblog \ Adldap2, the configuration of the connection is as follows: 'ad' => [ 'class' => 'Edvlerblog\Adldap2\Adldap2Wrapper', 'providers' =>...
asked by 18.12.2018 / 19:32