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...
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' => ['...
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...
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...
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...
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
...
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...
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]', ...
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...
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 ...
7
Solved
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...
Ceria asked 15/2, 2017 at 5:36
3
This is my .htaccess file:
RewriteEngine on
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . i...
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...
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
1 Next >
© 2022 - 2024 — McMap. All rights reserved.