Wiki articles

Showing 161-180 of 650 items.

CGridView keep focus on the control after filtering

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

You can find the reason why I wrote this article here.

5 0
10 followers
Viewed: 13 812 times
Version: 1.1
Category: How-tos

two or more different collected data in one CGridView

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

Assume that you have teachers and students model.

2 1
6 followers
Viewed: 13 898 times
Version: 1.1
Category: How-tos

WordPress Role Based Authentication in Yii

Created 5 years ago by Bob G, updated 5 years ago by CeBe.

This tutorial is for people that are integrating Yii into WordPress. Meaning that WordPress is the host platform, and that Yii will be handling AR, CRUD, etc.

4 0
8 followers
Viewed: 14 035 times
Version: 1.1
Category: Tutorials

Extending CJuiDialog

Created 7 years ago by dstudio, updated 7 years ago by Maurizio Domba Cerin.

Sometimes you have CJuiDialog with different content but same buttons (or width, height). If you don't want to repeat yourself this is a great solution:

1 2
2 followers
Viewed: 14 131 times
Version: 1.1
Category: How-tos

How to create a custom exception and show it friendly with CJuiDialog

Created 4 years ago by Fábio Sales, updated 4 years ago by Fábio Sales.

Sometimes we need to create our custom exception and show it to the end user through a friendly way . In this article, I'm showing how to do it using CJuidialog.

0 0
1 follower
Viewed: 14 202 times
Version: 1.1
Category: How-tos

关于Yii CHttpSession性能优化篇之源码流程分析

Created 8 years ago by Darwin Wen, updated 7 years ago by Maurizio Domba Cerin.

当我们使用Yii数据库去保存Session时,只要简单的配置就可以完成这个功能,在进行性能优化这个主题之前,我们先来查看一下CHttpSession和CDBHttpSession源代码,探讨CHttpSession和CDBHttpSession的流程再进行深一步优化主题。

0 1
2 followers
Viewed: 14 261 times
Version: 1.1
Category: Tips

Building Page Specific Menus using CMenu

Created 6 years ago by mistryb, updated 4 years ago by mistryb.

The Yii Framework provides a sweet functionality that allows you to easily create page specific menus. What does this mean? This allows you to create one layout or CSS styling for your menu, and when each page is loaded, a new set of menu items is loaded in. This is useful for context specific sidebars within your application.

0 0
3 followers
Viewed: 14 290 times
Version: 1.1
Category: How-tos
Tags: CMenu

Ordering Models by Weight with CJuiSortable

Created 9 years ago by Matt Kelliher, updated 6 years ago by Phil Loaiza.

In this tutorial we will be setting up a content type to be ordered by weight using the JUI Sortable plugin.

9 0
10 followers
Viewed: 14 321 times
Version: 1.1
Category: Tutorials
Tags:

Upload Files to Rackspace Cloud Files CDN

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

** I actually made this into an extension for easier use. You can view the extension: http://www.yiiframework.com/extension/rackspaceconnect/

2 0
3 followers
Viewed: 14 369 times
Version: 1.1
Category: Tutorials

How to obtain a grammatically correct translation of the model name in giix-generated view files

Created 7 years ago by c@cba, updated 7 years ago by c@cba.

The giix code generator has out of the box i18n support for model names and attribute labels (besides other cool features > check it out!) .
But I want to factor in not only the plural form, but also the grammatical cases (especially the accusative) while translating 'Manage Objects', 'Create Object', 'Edit Object' etc.

4 0
1 follower
Viewed: 14 419 times
Version: 1.1
Category: How-tos

Getting nulls from database instead of empty strings

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

To get null from database instead of empty strings you need to set up your DB connection as follows:

13 0
11 followers
Viewed: 14 487 times
Version: 1.1
Category: Tips
Tags: database, null

Advanced CTabView using CClipWidget

Created 10 years ago by krillzip, updated 7 years ago by Yang He.

Here is a way to dynamically extend tabs based on clips.
Probably even more complex things could be done.

2 0
2 followers
Viewed: 14 604 times
Version: 1.1
Category: Tutorials
Tags:

Behaviour for Time Zone and Format conversion for Date, Time, timestamp, and datetime

Created 4 years ago by Smithesh, updated 3 years ago by Smithesh.

This Behaviour helps to view time/date/timestamp/datetime from db to local Date / Time / Date Time format and in local Timezone. And save into db in with db timezone and db format. You only need to include this behaviour in models where need this facility.

1 0
3 followers
Viewed: 14 703 times
Version: 1.1
Category: How-tos

How to display page on fancybox...using CHtml::ajaxlink with yii validation

Created 6 years ago by Ankit Modi, updated 4 years ago by Rohit Suthar.

1) include the fancybox extesion otherwise fancybox js

0 0
4 followers
Viewed: 14 801 times
Version: 1.1
Category: Tutorials

View a related field in CGridView

Created 5 years ago by rafaelt88, updated 4 years ago by rafaelt88.

Generally we need to show one or more fields from a model that is related to another model used in CGridView. For our case we will use two related models, which explain how to use model "A" fields in a CGridView that used model "B".

1 0
3 followers
Viewed: 14 939 times
Version: 1.1
Category: Tips

caching controllers with filters()

Created 8 years ago by RusAlex, updated 8 years ago by Maurizio Domba Cerin.

Hello, this article will describe some aspects about caching controllers with filters() method in your controller. And I will describe some problems I meet when using this approach for caching, the main problem was

2 0
8 followers
Viewed: 14 948 times
Version: 1.1
Category: How-tos

Select2 Infinite Scroll With Remote Data in Yii

Created 5 years ago by IsraelAma, updated 5 years ago by CeBe.

I was able to set up the infinite scroll of select2 in Yii. I am glad to share it with you. The demo and source code can be found here. However, select2 for Yii can be found here which uses a widget.

3 0
5 followers
Viewed: 14 959 times
Version: 1.1
Category: How-tos

How to change Migration Table name and use defined prefix.

Created 6 years ago by Jorgee, updated 6 years ago by jamband.

To accomplish the task of changing Migration table's name, by default tbl_migration, you need to add the following in your ./protected/config/console.php.

3 0
5 followers
Viewed: 14 987 times
Version: 1.1
Category: How-tos

Profiling using XDebug

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

A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

3 0
3 followers
Viewed: 14 995 times
Version: all
Category: How-tos

ChromePHP for Yii

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

ChromePHP is a console logging extension for Google Chrome.

3 1
4 followers
Viewed: 15 000 times
Version: 1.1
Category: Tips