Questions tagged as 'yii'

2
answers

Send e-mail with attachment sent by input

I have a PHP website with a contact form that allows you to upload a file. This file should then be sent attached in an email along with the other data. The email is not being received, even though you receive the sending confirmation message. I...
asked by 17.10.2014 / 17:22
0
answers

Yii2 Rest I can not send the Name field of another Table

How do I send the Employee name that is in the Officers table to appear in the request of a REST ? I'm newbie, it appears in the view I tested, but I do not think the correct way to send it by REST . the Asos table has the id a...
asked by 18.09.2017 / 16:34
1
answer

Yii2 PHP Framework get value RadioList

I'd like to know how to get the value selected in the Yii2 Framework's RadioList: <div class="row"> <div class="col-sm-2"> <?= $form->field($model, 'RADIO_LIST')->radioList($values, array('class' =>...
asked by 16.10.2017 / 15:13
0
answers

Yii2 error. Unknown Property - yii \ base \ UnknownPropertyException [closed]

Good evening, I can not use the Yii software for several months because of the following error: Unknown Property - yii \ base \ UnknownPropertyException Getting unknown property: app \ models \ youSearch :: E 1. in C: \ xampp \ htdocs \ yi...
asked by 05.05.2017 / 02:35
0
answers

Search filtering Start and End Yii

How to perform a search for the Start Date and End Date. I am using the Yii Framework. Can someone help me? I'm not able to search the date correctly. link     
asked by 15.03.2016 / 14:00
2
answers

How do I give the user permission to access a page in the Yii framework?

I came across the following error, where it says that the user is not allowed to access the page:    Error 403       You are not allowed to access this page. Can someone please help me?     
asked by 13.06.2014 / 15:33
1
answer

Update with two model Yii2

I'm studying on Yii2 and I do not have much knowledge of the framework. I'm having trouble updating database data in two different models (Student and Address). The idea is simple, load the view with the student data (which has the address...
asked by 10.05.2018 / 04:44
2
answers

With this rule below, how do I display the first and last name of the user in the database?

Within the model, how do I display the user name: Example of the name that is in the DB: José ALberto da Silva Nogueira. I would like you to show only José Nogueira. public function getNome(){ if($this->group == User::GROUP_NOME_CLIENT...
asked by 29.12.2015 / 17:11
2
answers

How to use the find method with sum?

Using Yii2, I want to get the result of the following query: SELECT data_pagamento, sum(valor_pago) FROM tbl_finlegado_titulo_parcela_baixa WHERE MONTH(data_pagamento) = 10 GROUP BY DAY(data_pagamento) Using the find method, it does not...
asked by 19.10.2015 / 14:56
1
answer

Configure Button in Bootstrap

I'm new to Yii and I'm using Bootstrap. I configured it correctly but it is strange in the execution of the page, for example I inserted a button, it is inserted normally only in a simple link form. Why? <?php /* @var $this SiteController *...
asked by 11.07.2014 / 18:48