Wiki

Sorted by ratingX
Displaying 401-410 of 719 result(s).

Access log output from unit tests

Created 2 years ago by MikeTips2 comments – viewed 5,446 times – ( +4 ) – version 1.1
Say, you want to write a test for a component which provides a caching feature. How would you know, that some method of your component returns a cached result? With the solution described here you can inspect all log outputs. So you could search the logs for accesses to the DB to really make sure, that the result was served from cache.

Update a part of content using AJAX when select a GridView row

Created about a year ago by KonApazHow-tos2 comments – viewed 12,411 times – ( +4 ) – version 1.1
Suppose you want to refresh a form or any content when a single row of CGridView is selected

ClientValidation for files (modern browsers)

Created about a year ago by KonApazHow-tos0 comments – viewed 5,834 times – ( +4 ) – version 1.1
There are cases that you want to validate the file format, size, extension etc but how to do that without submit the form ?

HOW TO: Use token based authentication

Created 11 months ago by le_topHow-tos0 comments – viewed 7,895 times – ( +4 ) – version 1.1
After reading the other wiki article regarding token based access, I thought that it might be interesting to share my method.

Changing Controllers Name

Created 4 years ago by TrejderHow-tos0 comments – viewed 12,784 times – ( +4 ) – version 1.1
This very short how-to presents steps required to change controller name. It is oriented for less experienced users, which are starting their journey with Yii, to avoid common newbie pitfalls.

Get notified about the status of a Facebook user in your web app using periodic Ajax calls.

Created 2 years ago by sirin kTips0 comments – viewed 5,439 times – ( +4 ) – version 1.1
hello, This article is helpful only if you have the following situation: A web app which uses facebook login to login its users and if a user is logged out from his/her facebook account through another browser tab, then your app dont know that he is logged out out or not from his facebook account and he/she will remain as logged in your web application.Its ok if you have no problem with this situation.But if you want to forcefully logout the user from your application if he is logged out from his facebook account means you can try this example.This example uses periodic ajax calls to facebook's graph api to check whether the user is logged in or not.
tags: facebook, user

How to Enhance a CGridView

Created 9 months ago by bluyellHow-tos5 comments – viewed 3,143 times – ( +4 ) – version 1.1
by: Christian Salazar (bluyell, @salazachris74, christiansalazarh@gmail.com)

Select2 Infinite Scroll With Remote Data in Yii

Created 8 months ago by amanationHow-tos5 comments – viewed 4,810 times – ( +4 ) – version 1.1
I was able to set up the infinite scroll of select2 in Yii. I am glad to share it with you. The demo and source code can be found here. However, select2 for Yii can be found here which uses a widget.

Preventing CJuiTabs from hiding drop-down CMenu items

Created 3 years ago by Steve FriedlTips1 comment – viewed 8,780 times – ( +4 ) – version 1.1
Almost all Yii applications use CMenu at the top of each page to show options available to the user, and many include drop-down components to allow more fine-grained selection.

How to send emails using SMTP

Created 8 months ago by robregonmHow-tos0 comments – viewed 9,932 times – ( +4 ) – version 2.0
Follow @robregonm
tags: yii2, email, mail, mailer, smtp