Wiki articles

Showing 481-500 of 823 items.

Simple way to use AutoComplete using different ID and Display Value

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

Usually when we use AutoComplete in a project, We need to show "title" or "name" in the list, while when the form is posted, we need some sort of integer ID referring to the selected value. Out of the Box, CJuiAutoComplete widget doesn't provides different display text and post values.

6 0
13 followers
Viewed: 63 439 times
Version: 1.1
Category: Tutorials

Custom Number Formatting or Decimal Separators and i18n

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

By default, the decimal separator in php (also in mysql) is a dot (.). So when we work with floats in Yii (in calculations, validation, sql statements etc.), the decimal separator has to be a dot. If we want to use for example a comma (,) as the decimal separator, that is if we want to display numbers and enable users to enter numbers with a comma before the decimals, we have to...

4 0
16 followers
Viewed: 87 919 times
Version: 1.1
Category: Tutorials

Yii behind a reverse proxy, SSL support and correct IP logging

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

If you are hosting Yii behind a reverse proxy, for example nginx, and you are having issues with your logs showing the proxies IP, or the urls being created arn't being created for SSL because your SSL certs are located on your reverse proxy instead of the Yii server, this code may be able to help you. I placed them in the very top of Yii's entry script, index.php

0 0
2 followers
Viewed: 18 512 times
Version: 1.1
Category: Tips

Extending CJuiDialog

Created 12 years ago by dstudio, updated 12 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: 18 819 times
Version: 1.1
Category: How-tos

How to render a view in Fancybox using ajax

Created 12 years ago by rix.rix., updated 12 years ago by 张 迪.

Sometimes you want to render a view in Fancybox.

4 0
14 followers
Viewed: 31 595 times
Version: 1.1
Category: How-tos

How to create front and admin side login form

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

In this WIKI you can learn how to create front and admin login form, using database.

4 0
15 followers
Viewed: 100 930 times
Version: 1.1
Category: How-tos

Auto set model fields values

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

This is a tutorial for how to auto set model values without any code.

5 0
11 followers
Viewed: 31 643 times
Version: 1.1
Category: Tutorials

Alternative wildcard characters CDbCriteria

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

In SQL, wildcard characters can be used in "LIKE" expressions; the percent sign (%) matches zero or more characters, and underscore (_) a single character. Sometimes users are not familiar with these or they are using different ones like (*) and (+) similar to regular expressions. My colleages do so and then i decided to add this feature by extending CbCriteria. Especially adding a new parameter $...

1 0
2 followers
Viewed: 11 807 times
Version: 1.1
Category: How-tos

Working with CGridView in Admin Panel

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

This is a tutorial for how to add input text-Field, check-box, buttons in CGridView.

21 1
41 followers
Viewed: 91 711 times
Version: 1.1
Category: Tutorials

How to setup CKeditor

Created 12 years ago by Dark-Sun, updated 12 years ago by Dark-Sun.

To start with you need to download the latest stable release of CKeditor. Extract the downloaded file and place the ckeditor/ folder in your applications webroot directory. (beside "protected" and "css" and other directories)

3 0
8 followers
Viewed: 35 158 times
Version: 1.1
Category: Tutorials

Working with radiobutton list

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

This is a tutorial to work with radioButtonList which will handle enum datatype. Form design and validation both are detailed here.

9 0
10 followers
Viewed: 131 184 times
Version: 1.1
Category: Tutorials

Publish yii webapp using Git push

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

I did not invent this instructions, I read it somewhere and re-organized in my way as I was trying and it works for me;

2 0
8 followers
Viewed: 19 784 times
Version: 1.1
Category: How-tos
Tags: git

How to upload image(photo), and path entry in database with update functionality

Created 12 years ago by kiran sharma, updated 11 years ago by Shahcheraghean.

I saw many posts that community newbie is confuse in image/photo upload with random name. so I post this topic covering all useful things regarding to image/photo upload(not covering image attribute related functionality)

15 0
39 followers
Viewed: 211 245 times
Version: 1.1
Category: Tips

XUpload Workflow

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

This wiki describes a more complex workflow using the XUpload widget

28 0
42 followers
Viewed: 96 270 times
Version: 1.1
Category: Tutorials

BootProgressColumn - Progress Bar Inside GridView Column compatible with 'bootstrap' extension

Created 12 years ago by Luiz, updated 11 years ago by robregonm.

A little hint of how to create a progress bar inside the column of the grid, using the 'bootstrap' extension.

5 0
7 followers
Viewed: 25 032 times
Version: 1.1
Category: Tips

ACL and RBAC

Created 12 years ago by zeroByte, updated 12 years ago by kevinkorb.

This HowTo assumes that you have a smattering of ACL in general and of how the acl-extension works basically. It will introduce you into the abstract and give you a hint on how to use Business-Rules. If you have in-depth questions, please refer to the extension documentation. Using ACL in an RBAC-manner cannot and should never obs...

0 0
3 followers
Viewed: 30 520 times
Version: 1.1
Category: How-tos

How to filter CGridView with From Date and To Date datepicker

Created 12 years ago by kiran sharma, updated 12 years ago by kiran sharma.

This artical is related to allow user to filter CGridView with date range using datepicker on submit button. Here I use Yii Cookie to preserve date in datepicker textbox after submitting the form.

9 0
26 followers
Viewed: 63 921 times
Version: 1.1
Category: Tips

Using SQLite and CDbMessageSource as a module

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

There are scenarios when you work with DVCS (like [Mercurial]( http://mercurial.selenic.com/) or [Git]( http://git-scm.com/)) and CDbMessageSource. To my experience keeping the development database and production database in sync can be very...

3 0
9 followers
Viewed: 22 636 times
Version: 1.1
Category: How-tos

How to: use github for download yii, create new app, and store our modules or extensions.

Created 12 years ago by sensorario, updated 12 years ago by Maurizio Domba Cerin.

Yesterday I've written a module for myself. Just an experiment. When I was feeling satisfied, I've created a repository on github, and pushed my code. My module and yii are on github. So I'll show you a "new" way to start our yii projects.

8 0
4 followers
Viewed: 22 561 times
Version: 1.1
Category: How-tos
Tags: git, github

How to hide `index` action from URL

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

Here is my experiment inspired by my own question and others from the forum.

3 1
9 followers
Viewed: 25 272 times
Version: 1.1
Category: How-tos
Tags: index