Tag: r

64 votes
3 answers
1.6K views
Implementing an RESTful API Authentication using tokens (Yii/Yii2)

I am building an API in Yii 1.x which will be used with a mobile application. Part of the process involves a l

avatar
Hallie
0 1 0 9
asked 07 September, 2021
55 votes
3 answers
1.7K views
Emberjs, server side vs client side, All in?

I have been looking into Ember.js, and it looks really great, but one thing that concerns me, and that I can&a

avatar
Tuan
0 1 0 9
asked 07 September, 2021
59 votes
4 answers
843 views
Yii: Multi-language website - best practices

I find Yii great framework, and the example website created with yiic shell is a good point to start... howeve

avatar
Serina
0 1 0 9
asked 07 September, 2021
59 votes
2 answers
838 views
Yii: Render action using different layout than controller's layout

In Yii, is there a way to render a single action using a different layout than that defined for the controller

avatar
Dorinda
0 1 0 9
asked 07 September, 2021
62 votes
2 answers
1.6K views
Yii2 global filter/behavior to force user to authenticate first

In my Yii2 application I'm trying to force all users to be authenticated. If they're not already aut

avatar
Dwain
0 1 0 9
asked 07 September, 2021
52 votes
5 answers
2.2K views
How to do IS NULL and IS NOT NULL with Yii 2 ActiveRecord?

I have a table which has a field `activated_at` timestamp NULL DEFAULT NULL, which means that it can contain a

avatar
Don
0 1 0 9
asked 07 September, 2021
55 votes
7 answers
2.1K views
Securing php api to use in android application

I am newbie to android development. I am using android studio for developing an application. Things i have don

avatar
Eddie
0 1 0 9
asked 07 September, 2021
62 votes
8 answers
3.1K views
Stupid error: Failed to load resource: net::ERR_CACHE_MISS

I'm developing Web app in Yii framework. I need use AJAX in my some pages. So, when I clicked the button

avatar
Fabian
0 1 0 9
asked 07 September, 2021
58 votes
14 answers
2.8K views
Yii model to array?

How can I convert the result of Trips::model()->findAll() to an array?

avatar
Adolfo
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
59 votes
6 answers
1.3K views
Postgres error: null value in column "id" - during insert operation

I use postgresql and yii2 framework. Well I got a very interesting error message: SQLSTATE[23502]: Not null v

avatar
Charis
0 1 0 9
asked 07 September, 2021
56 votes
7 answers
1.6K views
Hide label for input field

I am trying to hide the label for a specific field in _form.php without success. I have tried couple of varia

avatar
Royal
0 1 0 9
asked 07 September, 2021
54 votes
4 answers
1.2K views
Yii2 : Active Record add Not In condition

What is the active Record way of adding IN condition to an active Query in yii 1.x you could use CDbCriteria l

avatar
Sachiko
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
59 votes
6 answers
443 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
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