Tag: yii

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
67 votes
3 answers
2.7K views
Yii2 subquery in Active Record

How can I convert this sql into active record query SELECT * FROM `base_twitter` WHERE id NOT IN (SELECT base

avatar
Leonardo
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
52 votes
1 answers
2.8K views
When to use components and when to use extensions in Yii?

I'm a little bit confused about the purpose of components and extensions folders in protected/ Please cl

avatar
Dwain
0 1 0 9
asked 07 September, 2021
59 votes
4 answers
841 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
61 votes
3 answers
2.7K views
What is the difference between homeUrl and baseUrl in Yii framework?

What is the difference between homeUrl and baseUrl in Yii framework?

avatar
Emilia
0 1 0 9
asked 07 September, 2021
59 votes
2 answers
835 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
61 votes
2 answers
1.8K views
Yii multi page form wizard best practice

I am trying to build a multi-page form with Yii, but am quite new to PHP and Yii and am wondering what the bes

avatar
Don
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
51 votes
2 answers
746 views
render a view from another controller, yii

The controller: controllers |-FooController.php |-BarController.php The views: view |-foo| | |-index.ph

avatar
Don
0 1 0 9
asked 07 September, 2021
57 votes
4 answers
2.4K views
Yii2 request parameter from url

In YII I could request a parameter from url and populate a form field called companyAdd_id with the following

avatar
Jeff
0 1 0 9
asked 07 September, 2021
53 votes
5 answers
3.1K views
Create button with link in Yii2

I am trying to setup a button with a link to a view. However yii\bootstrap\Button does not have a property url

avatar
Tana
0 1 0 9
asked 07 September, 2021
51 votes
2 answers
1.7K views
Yii2 how does search() in SearchModel work?

Please can someone explain how the search method in a Yii2 SearchModel works? I generated it using Gii. Here i

avatar
Keith
0 1 0 9
asked 07 September, 2021
59 votes
1 answers
1.1K views
Yii2: How to use orWhere in andWhere

I want create this query with yii2 search model select * from t1 where (title = 'keyword' or conte

avatar
Elicia
0 1 0 9
asked 07 September, 2021
57 votes
4 answers
1.8K views
Yii 2.0 How to generate form without <div class="form-group">?

<?php $form = ActiveForm::begin(['id' => 'contact-form']); ?> <?= $for

avatar
Scot
0 1 0 9
asked 07 September, 2021
54 votes
8 answers
954 views
Basic Hidden field in yii

I'm trying to place data in hidden text in yii, but I don't know how. I need a similar code to a re

avatar
Dwain
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
53 votes
8 answers
1.4K views
Cakephp and Yii: similarities/differences/speed?

I am a CakePhp programmer. I have decided to try out the Yii framework. I would like to find out in what ways

avatar
Leonardo
0 1 0 9
asked 07 September, 2021