Wiki articles

Showing 161-180 of 650 items.

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

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

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

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

How to sum (Update) of all input button price value using jquery

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

Hi Friends, In this tutorial, how to update the sum of all the button data-price value using jquery, Just Follow three step and it's work easily.I hope It may be some helpful to others. See Image

0 0
2 followers
Viewed: 14 797 times
Version: all
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 803 times
Version: 1.1
Category: How-tos
Tags: CMenu

Interactive mode command-line command for Yii1

Created 3 years ago by Trejder, updated 3 years ago by Trejder.

For one of my projects I needed an interactive console command in Yii 1, i.e. the one that is gathering all information from user in an interactive mode (a serie of questions and answers displayed directly in the console), ignoring command-line arguments at all.

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

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

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

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: 15 150 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 5 years ago by Rohit Suthar.

1) include the fancybox extesion otherwise fancybox js

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

caching controllers with filters()

Created 9 years ago by RusAlex, updated 9 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 448 times
Version: 1.1
Category: How-tos

Getting nulls from database instead of empty strings

Created 9 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 586 times
Version: 1.1
Category: Tips
Tags: database, null

Yet another implementation of CPhpAuthManager.

Created 7 years ago by seenivasan, updated 7 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 600 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 669 times
Version: 1.1
Category: Tips

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 725 times
Version: 1.1
Category: Tips

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: 15 732 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".

2 0
3 followers
Viewed: 15 766 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 785 times
Version: 1.1
Category: Tutorials
Tags:

Select2 Infinite Scroll With Remote Data in Yii

Created 6 years ago by IsraelAma, updated 6 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 838 times
Version: 1.1
Category: How-tos

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

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 900 times
Version: 1.1
Category: How-tos
3 0
4 followers
Viewed: 16 006 times
Version: 1.1
Category: How-tos