php

PHP is a widely used, high-level, dynamic, object-oriented and interpreted scripting language primarily designed for server-side web development.

56 votes
2 answers
1.3K views
Yii2: Why is the auth key in class User?

As the title clarifies why is the auth key introduced in Yii2? What're it's main usages and how it i

avatar
Adolfo
0 1 0 9
asked 07 September, 2021
64 votes
4 answers
3K views
how to pass parameter on redirect in yii

I am using Yii framework for my project; I am redirecting page after success of insertion in database to a

avatar
Luis
0 1 0 9
asked 07 September, 2021
49 votes
8 answers
2.1K views
Get current controller and action id in Yii

I want to force all users to log in before accessing pages of my site. I have followed Larry Ullman's tut

avatar
Ali
0 1 0 9
asked 07 September, 2021
55 votes
2 answers
1.1K views
addColumn yii migration position

I want to add a column at the seventh place in the table, I am using $this->addColumn('table_name&ap

avatar
Royal
0 1 0 9
asked 07 September, 2021
61 votes
3 answers
1.9K views
What is the difference between $with and $joinWith in Yii2 and when to use them?

In the API documentation it is specified that $joinWith - A list of relations that this query should be j

avatar
Roger
0 1 0 9
asked 07 September, 2021
60 votes
9 answers
541 views
How to set the default controller in yii2

I have UserControler and I run it in virtual server http://basic.com/index.php?r=user/index. How can I set up

avatar
Ali
0 1 0 9
asked 07 September, 2021
54 votes
6 answers
1K views
Where can i find the yii version of my yii app?

I recently started to work with yii, where can i find the yii version of my yii app?

avatar
Janella
0 1 0 9
asked 07 September, 2021
66 votes
10 answers
2.9K views
Getting base URL in Yii 2

I am trying to get the base URL for the project in Yii 2 but it doesn't seem to work. According to this p

avatar
Jesenia
0 1 0 9
asked 07 September, 2021
51 votes
6 answers
1.9K views
How to use the swiftMailer in Yii2

I can't finally understand how to use the swiftMailer extension in Yii2. Judging by that on this subject

avatar
Nereida
0 1 0 9
asked 07 September, 2021
54 votes
4 answers
1.4K views
"Invalid parameter number: parameter was not defined" Inserting data

I've been using Yii's active record pattern for a while. Now, my project needs to access a differen

avatar
Denese
0 1 0 9
asked 07 September, 2021
59 votes
6 answers
438 views
Jquery - Uncaught TypeError: Cannot use 'in' operator to search for '324' in

I'm trying to send a Get request by ajax and output json data that is returned by server in html. But, I

avatar
Juliane
0 1 0 9
asked 07 September, 2021
62 votes
16 answers
1.5K views
Get current URL/URI without some of $_GET variables

How, in Yii, to get the current page's URL. For example: http://www.yoursite.com/your_yii_application/?l

avatar
Robyn
0 1 0 9
asked 07 September, 2021
49 votes
8 answers
2.8K views
URL in Yii2 GridView

I have this code: <?php echo GridView::widget([ 'dataProvider' => $dataProvider, 'fi

avatar
Tana
0 1 0 9
asked 07 September, 2021
55 votes
8 answers
1.5K views
Yii2 How to perform where AND or OR condition grouping?

I am new to Yii-2 framework. How can i achieve following query in Yii-2 framework using activeQuery and models

avatar
Venice
0 1 0 9
asked 07 September, 2021
56 votes
9 answers
1.3K views
How to get response as json format(application/json) in yii?

How to get response as json format(application/json) in yii?

avatar
Alphonso
0 1 0 9
asked 07 September, 2021
55 votes
7 answers
3.2K views
CURL ERROR: Recv failure: Connection reset by peer - PHP Curl

I'm having this strange error, CURL ERROR: Recv failure: Connection reset by peer This is how it happens

avatar
Tuan
0 1 0 9
asked 07 September, 2021
69 votes
13 answers
1.7K views
Only on Firefox "Loading failed for the <script> with source"

I want to integrate Marketo form with my existing website on yii framework. My code works on all the browsers

avatar
Lashawna
0 1 0 9
asked 07 September, 2021
53 votes
18 answers
3K views
Include CSS,javascript file in Yii Framework

How to include a Javascript or CSS file in Yii Framework? I want to create a page on my site that has a littl

avatar
Rudy
0 1 0 9
asked 07 September, 2021
56 votes
8 answers
442 views
Yii2 data provider default sorting

In Yii 1.1 this code works for default sorting: $dataProvider = new CActiveDataProvider('article',a

avatar
Roger
0 1 0 9
asked 07 September, 2021
61 votes
9 answers
1.4K views
Reconnection of Client when server reboots in WebSocket

I am using web socket using PHP5 and the Chrome browser as client. I have taken the code from the site http://

avatar
Keith
0 1 0 9
asked 07 September, 2021