Wiki articles in category Tips

Showing 1-20 of 119 items.

Things to Consider when application hosting on AppFog

Created 10 years ago by VINAY Kr. SHARMA, updated 10 years ago by VINAY Kr. SHARMA.

I faced many issues when hosted our company website on AppFog.

1 0
1 follower
Viewed: 8 951 times
Version: 1.1
Category: Tips

Useful Multilanguage extensions collection and use.

Created 11 years ago by cihappy, updated 10 years ago by Rohit Suthar.

What I want to achieve:

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

Custom Archive in Blog system

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

Hi I had made simple archive system for blog system that can handle tbl_post. I had used simple CDbCriteria not more than that. I know there is more and many better way to this but I think this will give some idea to users to generate new idea or customized or modified this version of code.

1 0
2 followers
Viewed: 11 080 times
Version: 1.1
Category: Tips

Provide SVG when the browser supports it, else PNG (using CHtml::image overload)

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

Modern browsers support SVG, older browsers do not. This replacement for CHtml::image() allows you to handle to propose SVG in an efficient way with PNG as a fallback.

1 0
1 follower
Viewed: 11 163 times
Version: 1.1
Category: Tips

Search scenario (CGridView, etc.): avoid default values from database as search condition.

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

Yii has a neat "trick" that will assign default values to new CActiveRecords. When performing a search() though, this is pretty annoying as they automatically apply as filter values.

1 0
2 followers
Viewed: 11 743 times
Version: 1.1
Category: Tips

Create URL to language switcher anchor with langhandler

Created 11 years ago by Anas AbuDayah, updated 11 years ago by Anas AbuDayah.

This topic is related with langhandler extension

1 1
2 followers
Viewed: 11 932 times
Version: 1.1
Category: Tips

using jqbargraph to create beautiful graphs

Created 12 years ago by MAHESH.E.U, updated 12 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: 12 114 times
Version: 1.1
Category: Tips

an easy way to required multi columns(At least one cannot be blank)

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

in model add the following code:

3 0
3 followers
Viewed: 12 126 times
Version: 1.1
Category: Tips
Tags: rules

CjuiDatepicker

Created 12 years ago by hiral darji, updated 12 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: 12 219 times
Version: 1.1
Category: Tips

Functional tests independing from your urlManager settings

Created 14 years ago by RusAlex, updated 14 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: 12 878 times
Version: 1.1
Category: Tips

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

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

Reading the doc

Created 14 years ago by zaccaria, updated 14 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: 13 394 times
Version: 1.1
Category: Tips
Tags: doc

What SQL-Statement creates yii?

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

The usual way to find out what Yii has created for an SQL query is to mutilate the SQL in the sourcecode and call the program again so that the SQL statement with errors is displayed. Or you can use the SQL logger, which must be switched on and off each time and logs all SQL statements, which leads to an enormous slowdown in program execution and decelerates your workflow.

0 0
1 follower
Viewed: 13 661 times
Version: 1.1
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 012 times
Version: 1.1
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 382 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 509 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 546 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 949 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 025 times
Version: 1.1
Category: Tips
Tags: config, module