Wiki articles

Showing 161-180 of 650 items.

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 562 times
Version: 1.1
Category: Tutorials
Tags:

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 565 times
Version: 1.1
Category: How-tos

Building Page Specific Menus using CMenu

Created 6 years ago by mistryb, updated 5 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 629 times
Version: 1.1
Category: How-tos
Tags: CMenu

关于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 636 times
Version: 1.1
Category: Tips

Upload Files to Rackspace Cloud Files CDN

Created 7 years ago by StephenMiracle, updated 7 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 704 times
Version: 1.1
Category: Tutorials

Forcing login for all pages using CBehavior

Created 5 years ago by Rohit Suthar, updated 5 years ago by Rohit Suthar.

In this wiki I will show how could forcing login for all pages and users must be logged in to access almost all of the site’s content.

0 3
5 followers
Viewed: 14 838 times
Version: 1.1
Category: Tutorials

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

Created 8 years ago by c@cba, updated 8 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 880 times
Version: 1.1
Category: How-tos

Advanced CTabView using CClipWidget

Created 11 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 956 times
Version: 1.1
Category: Tutorials
Tags:

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: 15 146 times
Version: 1.1
Category: Tips
Tags: database, null

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

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

1) include the fancybox extesion otherwise fancybox js

0 0
4 followers
Viewed: 15 213 times
Version: 1.1
Category: Tutorials

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

Created 5 years ago by Fábio Sales, updated 5 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: 15 249 times
Version: 1.1
Category: How-tos

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: 15 255 times
Version: 1.1
Category: How-tos

Yet another implementation of CPhpAuthManager.

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

In this wiki, I try to implement a simple authorization schema without putting much logic inside a file or into database table. We are constructing authorization hierarchy inside the controller. We are getting roles for the current user from database table and assigning only roles to user that are declared in the particular controller. We have brought down the work of loading of auth data at ma...

5 1
7 followers
Viewed: 15 401 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: 15 484 times
Version: 1.1
Category: How-tos

Como trasponer una lista creada con CHtml::checkBoxList

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

En ciertas ocasiones tenemos que lidiar con el tema de colocar una lista de checkboxes para hacer una seleccion especifica como es el caso de los dias de la semana para un calendario, para esta labor tenemos el comando CHtml::checkBoxList(), revisando un poco el funcionamiento de este temos los siguientes parametros:

2 0
4 followers
Viewed: 15 488 times
Version: 1.1
Category: Tips

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

Created 5 years ago by Smithesh, updated 4 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.

2 0
3 followers
Viewed: 15 489 times
Version: 1.1
Category: How-tos

ChromePHP for Yii

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

ChromePHP is a console logging extension for Google Chrome.

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

Integrating FirePHP

Created 9 years ago by ricardograna, updated 9 years ago by ricardograna.
  • Install Firebug plugin for Firefox from here.
7 0
6 followers
Viewed: 15 526 times
Version: 1.1
Category: Tutorials
Tags:

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

2 0
3 followers
Viewed: 15 567 times
Version: 1.1
Category: Tips

How to extend CFormatter, add i18n support to booleanFormat and use it in CDetailView

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

As you know, the CDetailView widget displays details of a single model. If no formatting is specified, boolean values that are stored in the database as 0 and 1, are represented in the detail view as 0 and 1. If formatted as boolean, they are represented as 'No' and 'Yes'. We want to add i18n support, so that Yes and No appear in the current language.

9 0
9 followers
Viewed: 15 651 times
Version: 1.1
Category: How-tos