Wiki

Articles in category "tips", sorted by viewsX
Displaying 121-130 of 154 result(s).

using jqbargraph to create beautiful graphs

Created 4 years ago by MAHESH.E.UTips1 comment – viewed 8,904 times – ( +5 / -1 ) – version 1.1
If you are about to create a graph, the best option i would suggest is the jqbargraph.

Make an ajax request to another server using JSONP

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

REST API and null values in XML

Created about a year ago by marko60Tips0 comments – viewed 8,825 times – ( -1 ) – version 2.0
I have been working on a REST API using the excellent tools provided by Yii2. My problem was that I have to differentiate between empty values and null values. In other words, <elem></elem> is different from null as it represents an empty string. Also, although some use <elem/> to represent a null value it should still be interpreted as an empty string. In other cases, the absence of the element is taken to represent a null value, but this may create problem with some parsers.
tags: REST, XML, null

Solution for session lose of Facebook iframe application in Internet Explorer .

Created 5 years ago by sirin kTips0 comments – viewed 8,819 times – ( +2 / -1 ) – version 1.1
Facebook iframe app’s session is losing in Internet Explorer when doing a second redirection inside the facebook iframe app.The main reason is ,by default IE wont allow cookies in its priavacy settings If cookies not available means session is also not available for our Facebook iframe app in IE.

Access log output from unit tests

Created 5 years ago by MikeTips2 comments – viewed 8,785 times – ( +4 / -1 ) – 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.

Reading the doc

Created 7 years ago by zaccariaTips0 comments – viewed 8,531 times – ( +21 / -1 ) – version 1.1
Almost all the information you need whilst working with yii is written in the Class Reference.
tags: doc

CjuiDatepicker

Created 4 years ago by hiral darjiTips1 comment – viewed 8,358 times – ( +3 / -1 ) – version 1.1
If you have two datepicker in one form and you want that a date of from date shold be minimum date of todate then put following code in Cjuidatepicker widget options array:

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

Created 5 years ago by sirin kTips0 comments – viewed 8,338 times – ( +4 / -1 ) – 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

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

Created 5 years ago by Alexander PalamarchukTips1 comment – viewed 8,320 times – ( +2 / -2 ) – 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

Create thermometer using rgraph

Created 4 years ago by Ankit ModiTips2 comments – viewed 8,007 times – ( +4 / -1 )
Hi friends,