Wiki articles

Showing 201-220 of 804 items.

Using the jamselect widget with min and max values

Created 9 years ago by got 2 doodle, updated 9 years ago by wei.

The keywords will be stored in a text field in a comma delimited format. The keywords will be created by the site administrator.

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

How to show a Captcha in CForm?

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

In this wiki I will show how could use a Captcha in yii CForm. The easy way to show captcha image is create a form using CHtml method & CActiveForm, but CForm also should be able to show a captcha.

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

How to store array/widget configuration to the database with config validation rules

Created 6 years ago by Kartik V, updated 6 years ago by Kartik V.

Note the tag {{homeUrl}} will be dynamically replaced at runtime.

0 3
40 followers
Viewed: 14 718 times
Version: 2.0
Category: Tutorials

Using phpseclib with Yii

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

I installed phpseclib because I needed to do some AES encryption in my project. After all the hassle of installing php lib, I found out that Yii already has a security module (securityManager). I finally decided to keep using phpseclib because it has one big advantage over Yii securityManager module, it does...

0 0
6 followers
Viewed: 14 723 times
Version: 1.1
Category: How-tos
Tags: security

WordPress Role Based Authentication in Yii

Created 6 years ago by Bob G, updated 6 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 725 times
Version: 1.1
Category: Tutorials

How to read HTML5 Multiple File Input from controller?

Created 6 years ago by Kartik V, updated a year ago by samdark.
0 2
40 followers
Viewed: 14 754 times
Version: 2.0
Category: How-tos

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

关于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 798 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

Building a search GET request with scenarios ; calling a SearchModel from URLs...

Created 5 years ago by Louis Gac, updated 5 years ago by Louis Gac.

Search Models are a very elegant and powerful way to build an Active Data Provider. If you use them a lot, you'll quickly need to use scenarios, which will lead you to a very DRY Controller code.

0 0
2 followers
Viewed: 15 448 times
Version: 2.0
Category: Tips

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

model rules depended by user roles-permissions

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

This is a reference about model validators and user roles. In many cases we want model validators to applied only for some privileged users or not

3 0
3 followers
Viewed: 15 485 times
Version: Unknown (update)
Category: How-tos

Using CListView to display items next to each other (in columns)

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

When using CListView to display multiple views next to each other, we can use the $index variable inside the viewFile to achieve this. As far as i know there is no extension or out-of-the-box functionality for this, so we need to apply a little hack:

4 0
6 followers
Viewed: 15 566 times
Version: Unknown (update)
Category: Tips

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