yii2 Questions

3

Solved

I am beginner to yii2 & trying to search fields in Gridview using Pjax on search button. I have done this with GET method but I want to do this by using POST method. Then how can I do this with...
Cinderellacindi asked 10/3, 2015 at 5:27

7

I've a question about yii2 kartik-v widget select 2. the widget is attached to a field in my view <?= $form->field($model, 'address')->widget(Select2::className(), [ 'options' => ['...
Floristic asked 25/2, 2016 at 12:35

8

Solved

I'm getting this at the bottom of my page, where the debug bar should be. What is the problem? This request: http://localhost:81/xxx/web/debug/default/toolbar?tag=5578f180963e82.28312577 is retur...
Hamm asked 11/6, 2015 at 2:26

4

I did a fresh installation of Ubuntu and after installing Yii2 etc I can't seem to be able to run codecept anymore. I'm using Yii2. I required the latest codecept version in composer.json which is...
Workroom asked 23/5, 2015 at 13:42

3

Solved

I have a migration in Yii2, where I try create a table. I set charset for table, but I don't know how to set charset for particular column. For example: $this->createTable('some_table', [ 'co...
Bilbo asked 18/8, 2016 at 6:17

11

Solved

I am trying to get the base URL for the project in Yii 2 but it doesn't seem to work. According to this page you used to be able to do: Yii::app()->getBaseUrl(true); In Yii 1, but it seems th...
Redcoat asked 9/1, 2015 at 8:33

3

I am using the Kartik Depdrop widget. Everything is working fine except in the situation where I have not selected a value on creation of new record, on update the dependent field should show Plea...
Inexpensive asked 8/3, 2015 at 10:58

4

Solved

In the API documentation it is specified that $joinWith - A list of relations that this query should be joined with $with - A list of relations that this query should be performed with ...
Shellishellie asked 1/9, 2014 at 6:34

14

Solved

when i got upgraded my ubuntu from 15.10 to 16.04 i have this erro in my yii2 project SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #3 of SELECT list is not in GROUP BY clause...
Chong asked 30/4, 2016 at 4:46

8

Solved

When I use this code, I get this error as a response: Bad Request (#400): Not possible to verify your data /** * Active toggle */ $(document).on('click', '[data-toggle-active-menu-items]', ...
Fitzgerald asked 31/7, 2014 at 9:7

5

I have ItemController and in actionView I put gridview of my Itempicture, and I want when I click on icon view, update and delete then go to ItempictureController. so How to change controller acti...
Joey asked 8/5, 2014 at 2:6

8

Solved

How do I dump and print variables in Yii for debugging? I would like to use var_dump() or print_r(). I tried to use Yii::trace() but it crashes with this error in runtime/logs/app.log. It doesn't e...
Lepus asked 19/3, 2015 at 1:2

5

My production site just provides the old ICU version 4.2.1. Since Yii2 requires Version 49.1 or higher I need to make workarounds in PHP. How do I get the nersion number of ICU (libicu) which is ...
Bloater asked 10/6, 2017 at 10:24

7

Solved

I don't know how to set the filter default of GridView. It's mean when page loaded, it's will load the filter with specific condition that I've set. Any idea for this? Thanks
Gordongordy asked 9/11, 2015 at 12:9

19

I am getting weird issue of sending push notification to Android using FCM. Goal :- Having error while sending push notification Below is the scenario I do have function for sending push notifica...

3

This is my .htaccess file: RewriteEngine on RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . i...
Fingerprint asked 12/8, 2018 at 6:51

3

Solved

I am trying to make background color that depending on the value calculation number in one cell. This is my code: [ 'attribute' => 'coefTK', 'label' => '<abbr title="Koefisien Jumlah Tena...
Dodecasyllable asked 13/9, 2016 at 4:20

7

Solved

I have got difficult form in yii2 view, where some fields show or hide. It decide from user field choises, select options in the form. I write this frontend logic with custom jquery file. All is ok...
Travax asked 4/3, 2015 at 14:57

4

Solved

I'm having trouble configuring the vendor path for a Yii2 application. I am adding a couple of lines to the composer.json file I get from the Yii2 basic app template. All I want to do is change the...
Pratique asked 5/4, 2015 at 12:38

2

I am trying to use migrate command with yii2 basic template i have tried "yii migrate" and also "php yii migrate" but none of them are working. i also tried php init but it says "could not open inp...
Flog asked 11/9, 2015 at 10:9

2

Solved

I have written the below queries as I migrate my PHP website to the Yii2 framework. I want to add them to my controller so as to display the top 10 bets won. I have tried going through many Yii2 da...
Visibility asked 6/5, 2015 at 15:49

10

Solved

In Yii 1.1 this code works for default sorting: $dataProvider = new CActiveDataProvider('article',array( 'sort'=>array( 'defaultOrder'=>'id DESC', ), )); How default sorting can be set ...
Punner asked 10/4, 2014 at 16:30

9

Solved

I am posting a form to /user/save in order to save user data. The problem occurs when i try to redirect the user if the $_SERVER['REQUEST_METHOD'] is NOT 'post'. My user controller code namespace...
Quittance asked 27/5, 2014 at 15:36

6

Solved

Following This question i have set my rest controller behaviour as public function behaviors() { $behaviors = parent::behaviors(); $auth= $behaviors['authenticator'] = [ 'class' => HttpBear...
Eaddy asked 14/1, 2017 at 6:32

5

Solved

I have a bootstrap select with readonly="true" but I can still change the selected option. I need the disabled="true" behavior, but when I use this the select is not submitted. I need a combinati...
Tamra asked 29/9, 2015 at 14:38

© 2022 - 2024 — McMap. All rights reserved.