Questions tagged as 'yii'

0
answers

Yii Framework and phpmailer

Good afternoon, I'm using the yii framework and I'm using class phpmailer. I search the database for the user's email for sending. Problem is that it is not sending to other mail servers, if I put the email of the domain that the site is hosted...
asked by 03.07.2018 / 18:06
0
answers

AJAX with CHTML Image YII Framework

Hello, I'm trying to make an AJAX request with a Chtml Image. When a user clicks on this image the request is made through a jQuery function, however I'm having trouble getting the image path, my variable named path in the function does not retu...
asked by 21.05.2018 / 15:07
0
answers

Alphabetical order in listData ()

<?php echo $form->dropDownListGroup($model, 'cur_id', array( 'wrapperHtmlOptions' => array( //'class' => 'col-sm-5', ), 'widgetOptions' => array(...
asked by 14.02.2018 / 18:46
1
answer

Yii2 - How to include multiple records using activeform and checkbox

Hello, I'm using Yii to test some things, I have a table called Order and another table called Order Products and in this table has the order_id and product_id, I wanted in the same form to include several records in this table (Ordered Products)...
asked by 24.07.2017 / 21:55
1
answer

Where in Yii2 do the connection to the database

In the Yii2 Framework application I am using the "advanced" template, I am having difficulty making the connection. Where in the framework is the connection to the mysql database made?     
asked by 28.04.2017 / 00:54
1
answer

How does dropDownList work?

My code is just to add text, I'm using the yii 1 framework, I'd like to create a dropDownList with the female and male options only. <div class="row"> <?php echo $form->labelEx($model,'ALU_SEXO'); ?> <?php echo $f...
asked by 17.04.2017 / 16:26
1
answer

Action update widget dynamicform not saved in Yii 2.0 database

Hello everyone, I can get a registration form, which has a main table po, and a secondary table po_item to save multiple records, but in the update action the form does not bring the records of the bank items follows the code controller po...
asked by 03.04.2016 / 13:44
0
answers

delay to generate a pdf with Kartik mPDF for Yii2

I'm generating a pdf with 41 and it's taking about 3 minutes, would it be possible to generate this file faster? follow the code: $pdf = new Pdf([ // set to use core fonts only 'mode' => Pdf::MODE_CORE, // A4...
asked by 28.11.2015 / 13:35
1
answer

Button event in Yii Framework

I'm doing an application with Yii Framework which is relatively simple. First I made a view called total.php , which asks for a data inicial , data final and a button: <?php $form = $this->beginWidget('CActiveForm...
asked by 16.10.2015 / 15:13