Sorted by viewsX
Displaying 651-660 of 779 result(s).

Access log output from unit tests

Created 4 years ago by MikeTips2 comments – viewed 7,307 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.

Enhance security of cookie-based login

Created 2 years ago by darkheirHow-tos0 comments – viewed 7,249 times – ( +2 ) – version 1.1
Enhance security of cookie-based login

Yii2cdn Component

Created 6 months ago by junaidatariHow-tos0 comments – viewed 7,243 times – ( +1 ) – version 2.0
tags: yii2, cdn, assets

Safely checking if a model class exists (without exploding)

Created 2 years ago by BoazHow-tos0 comments – viewed 7,212 times – ( +1 ) – version 1.1
While rewriting the PcReportContent extension I'm maintaining I've bumped to a challenge. This wiki was born out of it.

Email by YiiMailer, Call Outlook, IMAP

Created 2 years ago by Scott_HuangHow-tos0 comments – viewed 7,162 times – version 1.1
In Yii community we have lots of extention can send emails, such as YiiMailer and Swift and so on, or even IMAPI, thanks for team contribution. However, sometimes, in the intranet enviroment, the program cannot run successfully since SMTP /IMAP port been banded. So you need to seek other ways. The most simple way is **call outlook** as COM.

How to apply a layout to an AJAX update

Created 2 years ago by trondHow-tos1 comment – viewed 7,143 times – ( +1 ) – version 1.1
The template system in Yii is quite flexible. By default you have three layers of content:
tags: AJAX, views

Make an ajax request to another server using JSONP

Created 2 years ago by Kostas Apazidis (KonApaz)Tips0 comments – viewed 7,042 times – ( +1 ) – version 1.1
There are cases that you want to make an ajax request to another server and get the results.

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

Created 4 years ago by sirin kTips0 comments – viewed 7,038 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

Cómo enviar emails usando SMTP

Created 2 years ago by robregonmHow-tos0 comments – viewed 7,036 times – ( +2 ) – version 2.0
Seguir a @robregonm

Making friends' configs, DB credentials and paths with version control

Created 4 years ago by Alexander PalamarchukTips1 comment – viewed 7,030 times – ( +2 / -1 ) – version 1.1
In many cases developers of one project use their own local environments for coding. There may be a common test platform and, of course, production. All these environments usually have different DB credentials and directory structures (first of all, path to YII framework directory). Another feature is debugging. It's convenient to turn it on for local environments, eventually - on the test server and never (generally speaking) - on the production.
tags: config