Wiki

Displaying 351-360 of 702 result(s).

Create Yii Project In Cloud9

Created 2 years ago by BenTutorials5 comments – viewed 15,582 times – ( +3 ) – version 1.1
This tutorial will guide you through the process of creating a yii application using Cloud9. We will use a git workspace to enable version control and also show how to link the Cloud9 workspace to GitHub.

CButtonColumn: Use special variable $data for the 'id' in the 'options' of a button

Created 2 years ago by bluezedTutorials5 comments – viewed 19,905 times – ( +10 / -1 ) – version 1.1
In an application I had a CGridView with a CButtonColumn and for an Ajax-Request I needed to make sure that the IDs of the buttons would not change when the GridView was updated so in effect I wanted to link them to the $data->id. So I tried:

Entire Messages into javascript object

Created 2 years ago by markuxHow-tos0 comments – viewed 4,562 times – ( +2 ) – version 1.1
I needed all messages with their translation into javascript. This is my solution:

Custom Archive in Blog system

Created 2 years ago by nirmalrokaTips0 comments – viewed 4,029 times – ( +2 ) – version 1.1
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.

The MrFisk IRC Bot

Created 2 years ago by rAWTAZOthers0 comments – viewed 12,904 times – ( +5 ) – version 1.1
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.
tags: MrFisk, YiiBot, IRC, bot

Create image thumbnails with php_img_preview

Created 2 years ago by Anas AbuDayahTutorials6 comments – viewed 10,294 times – ( +3 ) – version 1.1
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.
tags: images, views

Customize CGridView columns directly in your view

Created 2 years ago by clapasTips4 comments – viewed 21,074 times – ( +3 / -2 ) – version 1.1
You usually take a model instance passed into your view to provide data to a CGridView in this way:

Using sub query for doubletts

Created 2 years ago by mbTips3 comments – viewed 7,405 times – ( +1 ) – version 1.1
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.

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

Created 2 years ago by kiran sharmaHow-tos20 comments – viewed 29,029 times – ( +20 / -6 ) – version 1.1
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 2 years ago by raheelk2kTutorials4 comments – viewed 18,301 times – ( +9 ) – version 1.1
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.