Wiki articles

Showing 301-320 of 650 items.

Entire Messages into javascript object

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

I needed all messages with their translation into javascript. This is my solution:

1 0
3 followers
Viewed: 8 095 times
Version: 1.1
Category: How-tos

Custom Archive in Blog system

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

Hi I had made simple archive system for blog system that can handle tbl_post. I had used simple CDbCriteria not more than that. I know there is more and many better way to this but I think this will give some idea to users to generate new idea or customized or modified this version of code.

1 0
2 followers
Viewed: 7 721 times
Version: 1.1
Category: Tips

The MrFisk IRC Bot

Created 7 years ago by rAWTAZ, updated 6 years ago by rAWTAZ.

MrFisk is a sleek little bot hanging out in the official #yii IRC channel on freenode, meant to serve Yii users with documentation lookups and other things. This document intends to provide a summary of what MrFisk can do for you and how to use his fin^H^Heatures.

6 0
7 followers
Viewed: 31 008 times
Version: 1.1
Category: Others
Tags: bot, IRC, MrFisk, YiiBot

Create image thumbnails with php_img_preview

Created 7 years ago by Anas AbuDayah, updated 5 years ago by Anas AbuDayah.

This is another way to view images in your application and I like this way because it's simple and I think it's better performance than other.

3 0
9 followers
Viewed: 19 293 times
Version: 1.1
Category: Tutorials
Tags: images, views

Customize CGridView columns directly in your view

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

You usually take a model instance passed into your view to provide data to a CGridView in this way:

2 1
5 followers
Viewed: 36 803 times
Version: 1.1
Category: Tips

Using sub query for doubletts

Created 7 years ago by mb, updated 6 years ago by mb.

find doubletts by db fields. in this example i will check doublets for 3 tabelfields (col1,col2,col3). so i will get a subquery with the condition, select and grouping of the tablefields. the having with COUNT() > 1 means: find all records more then one result.

$model=new MyModel('search');
$model->unsetAttributes();

2 0
9 followers
Viewed: 19 462 times
Version: 1.1
Category: Tips

How to use Multiple instances of the same model in the same form

Created 7 years ago by kiran sharma, updated 7 years ago by Maurizio Domba Cerin.

When i had created this functionality then i found some difficulties and not got much idea from wiki and forums. so, i think this will be useful for newbie users and save time of other developers when create related functionality. I refer Collecting Tabular Input tutorial but not got clear idea for create/update...

Simple way to use AutoComplete using different ID and Display Value

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

Custom Number Formatting or Decimal Separators and i18n

Created 7 years ago by c@cba, updated 7 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: 68 989 times
Version: 1.1
Category: Tutorials

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

Created 7 years ago by mrkmg, updated 7 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: 11 449 times
Version: 1.1
Category: Tips

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

How to render a view in Fancybox using ajax

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

Sometimes you want to render a view in Fancybox.

4 0
14 followers
Viewed: 26 921 times
Version: 1.1
Category: How-tos

How to create front and admin side login form

Created 7 years ago by vibhaJadwani, updated 7 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: 88 450 times
Version: 1.1
Category: How-tos

Auto set model fields values

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

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

5 0
11 followers
Viewed: 25 585 times
Version: 1.1
Category: Tutorials

Alternative wildcard characters CDbCriteria

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

Working with CGridView in Admin Panel

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

How to setup CKeditor

Created 7 years ago by Dark-Sun, updated 7 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: 29 858 times
Version: 1.1
Category: Tutorials

Working with radiobutton list

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

Publish yii webapp using Git push

Created 7 years ago by rootbear, updated 7 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: 15 702 times
Version: 1.1
Category: How-tos
Tags: git

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

Created 7 years ago by kiran sharma, updated 6 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
38 followers
Viewed: 193 799 times
Version: 1.1
Category: Tips