Wiki articles in category Tips

Showing 21-40 of 162 items.

Create thermometer using rgraph

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

Hi friends,

2 0
4 followers
Viewed: 13 710 times
Version: Unknown (update)
Category: Tips

Patching PHP code (used as a library) without changing the original code!

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

The article Fixing extensions without modifying their code reminded me of another patching technique that I used. My conviction and a hard look on the web had led me to an article [Redefine PHP class methods or class](http://stackoverflow.com/questions/137006/ph...

4 0
5 followers
Viewed: 14 018 times
Version: 1.1
Category: Tips

Using PayPal IPN with Yii2

Created 10 years ago by darioo, updated 10 years ago by darioo.

I'm using PayPal's script from

0 0
1 follower
Viewed: 14 219 times
Version: 2.0
Category: Tips

embedded javascript block in your view with IDE checking or intellisense

Created 10 years ago by yiqing95, updated 10 years ago by yiqing95.

this is my way for embed js code block in view file:

2 0
3 followers
Viewed: 14 308 times
Version: 2.0
Category: Tips

Yii Rights Management Tips

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

yii rights some tips..

2 0
4 followers
Viewed: 14 383 times
Version: 1.1
Category: Tips

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

Created 12 years ago by Rodrigo Coelho, updated 12 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: 14 511 times
Version: 1.1
Category: Tips
Tags:

Make an ajax request to another server using JSONP

Created 11 years ago by Kostas Apazidis (KonApaz), updated 11 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: 14 547 times
Version: 1.1
Category: Tips

Yii CDBHttpSession数据库存储session性能优化实战

Created 13 years ago by Darwin Wen, updated 13 years ago by Darwin Wen.

上一篇 关于 Yii CHttpSession性能优化篇之源码流程分析 有详细分析CHttpSession执行流程,在了解CHttpSession的详细执行流程之后,我们就可以非常轻松的扩展Yii Session,来优化和符合自己的业务流程。

1 1
1 follower
Viewed: 14 782 times
Version: 1.1
Category: Tips

Shrink Yii, help your IDE and speed up copying

Created 13 years ago by dckurushin, updated 13 years ago by dckurushin.

yii-1.1.8.r3324 framework directory is 10.4 mb size.

9 8
16 followers
Viewed: 14 951 times
Version: 1.1
Category: Tips

Setting static modules' properties in config

Created 12 years ago by Alexander Palamarchuk, updated 12 years ago by Alexander Palamarchuk.

You may face a situation when you need to access to a configurable module's property from everywhere and you don't have an instance of this module's class.

1 1
2 followers
Viewed: 15 029 times
Version: 1.1
Category: Tips
Tags: config, module

Yii code completion and calltips in Komodo Edit

Created 14 years ago by viter, updated 14 years ago by wei.

My favourite editor is Komodo Edit (free and crossplatform) and I use it for my everyday coding work. Just recently I found out how to make it help me to work with Yii. :) So follow these steps:

5 0
3 followers
Viewed: 15 459 times
Version: 1.1
Category: Tips

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

Created 12 years ago by sirin k, updated 8 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: 15 479 times
Version: 1.1
Category: Tips

Understanding series articles

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

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

16 0
12 followers
Viewed: 15 652 times
Version: 1.1
Category: Tips

Syntax check

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

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

4 0
2 followers
Viewed: 15 720 times
Version: 1.1
Category: Tips
Tags: php, syntax

Using Nginx and Apache2 in separate distributed servers (ie, Amazon EC2 instances)

Created 12 years ago by Luis Lobo Borobia, updated 8 years ago by Luis Lobo Borobia.

We are running one frontend running NGINX and several app servers running Apache2. There are several issues we have come across but right now I'll be documenting one of them. I'll be completing this article when I get more time.

2 0
2 followers
Viewed: 15 752 times
Version: all
Category: Tips

CGridView: Adding behaviors from configuration, and template items from behaviors to CGridView

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

Changing the way a CGridView is rendered from the configuration file, or through behaviors specified at the moment it is used, is handy to extend a CGridView without creating tons of different classes for it. I am surprised that this is not in the default implementation, so I made my default CGridView implementation.

3 0
3 followers
Viewed: 15 937 times
Version: 1.1
Category: Tips

BaseModuleAR class with MultiActiveRecord

Created 14 years ago by dinhtrung, updated 13 years ago by Gustavo.

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

2 0
0 follower
Viewed: 16 034 times
Version: 1.1
Category: Tips

Preventing CJuiTabs from hiding drop-down CMenu items

Created 14 years ago by Steve Friedl, updated 14 years ago by RusAlex.

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.

4 0
3 followers
Viewed: 16 065 times
Version: 1.1
Category: Tips

A universal model attribute for its synthetic representation

Created 8 years ago by Alexandre Rodichevski, updated 8 years ago by Alexandre Rodichevski.

It is convenient to use the same identification attribute, say info, in all of the active records of your application. It should be a virtual read-only attribute defined by a getter method, its label being the model name.

0 0
3 followers
Viewed: 16 151 times
Version: 2.0
Category: Tips

Access log output from unit tests

Created 13 years ago by Mike, updated 13 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: 16 707 times
Version: 1.1
Category: Tips