Wiki articles in category Tips

Showing 21-40 of 158 items.

Yii Rights Management Tips

Created 4 years ago by Rajith R, updated 4 years ago by Rajith R.

yii rights some tips..

2 0
4 followers
Viewed: 9 140 times
Version: 1.1
Category: Tips

CjuiDatepicker

Created 6 years ago by hiral darji, updated 6 years ago by hiral darji.

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:

'onSelect'=>'js:function(selected) {
$("#HostelRoomStatusMaster_room_status_master_end_date").datepicker("option","minDate",selected);
				}',
1 0
5 followers
Viewed: 9 229 times
Version: 1.1
Category: Tips

Create thermometer using rgraph

Created 5 years ago by Ankit Modi, updated 5 years ago by Ankit Modi.

Hi friends,

2 0
4 followers
Viewed: 9 313 times
Version: Unknown (update)
Category: Tips

Reading the doc

Created 8 years ago by zaccaria, updated 8 years ago by Orteko.

Almost all the information you need whilst working with yii is written in the Class Reference.

21 0
3 followers
Viewed: 9 337 times
Version: 1.1
Category: Tips
Tags: doc

Selecting best language based on Browser language and available languages.

Created 4 years ago by le_top, updated 4 years ago by le_top.

Your application is international and you have to select the best language for the user. Your user may have selected 'fr_CA' and you have 'fr_FR' or 'fr' available. What do you do? Here is a tip.

2 0
1 follower
Viewed: 9 566 times
Version: 1.1
Category: Tips

Locking your Yii 2 project package versions with composer.lock

Created 5 years ago by Kartik V, updated 5 years ago by Kartik V.

Ok, you have installed a Yii 2 basic or advanced app for the first time and completed the post install steps. You have picked up a few extensions to install for the first time as well. You would already see a composer.lock file in your application root folder.

0 2
37 followers
Viewed: 9 730 times
Version: 2.0
Category: Tips

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

Created 6 years ago by sirin k, updated 2 years ago by Maurizio Domba Cerin.

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 wi...
4 0
6 followers
Viewed: 9 796 times
Version: 1.1
Category: Tips
Tags: facebook, user

using jqbargraph to create beautiful graphs

Created 6 years ago by MAHESH.E.U, updated 6 years ago by MAHESH.E.U.

If you are about to create a graph, the best option i would suggest is the jqbargraph.

5 0
9 followers
Viewed: 9 839 times
Version: 1.1
Category: Tips

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

Created 6 years ago by sirin k, updated 2 years ago by Maurizio Domba Cerin.

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.

2 0
4 followers
Viewed: 9 974 times
Version: 1.1
Category: Tips

how to use github (un)official extension repo in your Yii project

Created 7 years ago by RusAlex, updated 7 years ago by RusAlex.

I'm developing a web project for a company using Yii framework. We are using a git vcs in our development process. We like to use Yii extensions. But only if they are good.

4 0
8 followers
Viewed: 10 037 times
Version: 1.1
Category: Tips

Customize your Growl/Alert msg easy and quickly

Created 4 years ago by Scott_Huang, updated 4 years ago by Scott_Huang.

I leverage Kartik's notification widgets.

0 1
2 followers
Viewed: 10 101 times
Version: 2.0
Category: Tips

Yii behind a reverse proxy, SSL support and correct IP logging

Created 6 years ago by mrkmg, updated 6 years ago by mrkmg.

If you are hosting Yii behind a reverse proxy, for example nginx, and you are having issues with your logs showing the proxies IP, or the urls being created arn't being created for SSL because your SSL certs are located on your reverse proxy instead of the Yii server, this code may be able to help you. I placed them in the very top of Yii's entry script, index.php

0 0
2 followers
Viewed: 10 106 times
Version: 1.1
Category: Tips

Access log output from unit tests

Created 7 years ago by Mike, updated 7 years ago by Mike.

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.

3 0
2 followers
Viewed: 10 412 times
Version: 1.1
Category: Tips

Make an ajax request to another server using JSONP

Created 5 years ago by Kostas Apazidis (KonApaz), updated 5 years ago by Kostas Apazidis (KonApaz).

There are cases that you want to make an ajax request to another server and get the results.

1 0
2 followers
Viewed: 10 528 times
Version: 1.1
Category: Tips

Functional tests independing from your urlManager settings

Created 8 years ago by RusAlex, updated 8 years ago by RusAlex.

If you are testing your app and use urlManager in your config, sometimes you will find a problem: you want to test your site independing from urlManager settings. in that way you need to extend your WebTestCase class by this method:

0 0
4 followers
Viewed: 10 669 times
Version: 1.1
Category: Tips

Syntax check

Created 8 years ago by Russell England, updated 8 years ago by Russell England.

This will syntax check each php file recursively from the current directory.

4 0
2 followers
Viewed: 10 730 times
Version: 1.1
Category: Tips
Tags: php, syntax

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

Created 6 years ago by Alexander Palamarchuk, updated 6 years ago by ajsharma.

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 s...

1 1
4 followers
Viewed: 10 963 times
Version: 1.1
Category: Tips
Tags: config

Understanding series articles

Created 7 years ago by GOsha, updated 7 years ago by GOsha.

Here are all wiki articles from "Understanding" series by Yii wiki contributors:

16 0
13 followers
Viewed: 10 990 times
Version: 1.1
Category: Tips

[pt-br] O guia de estudos do Yii para iniciantes

Created 6 years ago by Rodrigo Coelho, updated 6 years ago by Rodrigo Coelho.

You can find the english version of this wiki here: The complete beginner's study guide for the Yii Framework.

1 0
3 followers
Viewed: 11 001 times
Version: 1.1
Category: Tips
Tags:

BaseModuleAR class with MultiActiveRecord

Created 8 years ago by dinhtrung, updated 7 years ago by Gustavo.

MultiActiveRecord is an extension that add support for multiple database connection for your application.

2 0
0 follower
Viewed: 11 225 times
Version: 1.1
Category: Tips