Wiki articles

Showing 261-280 of 822 items.

How to setup CKeditor

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

Serve jQuery and jQuery-UI from Google's CDN

Created 12 years ago by Yeti, updated 11 years ago by fad.

There are good reasons to use Google's Content Delivery Network (CDN) to serve jQuery and jQuery UI on your site:

14 0
17 followers
Viewed: 42 623 times
Version: 1.1
Category: Tutorials

How to render a view in Fancybox using ajax

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

Sometimes you want to render a view in Fancybox.

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

Using CAutoComplete to display one value and submit another

Created 15 years ago by luoshiben, updated 11 years ago by mohammad sharif ahrari.

Have you ever wanted to use an auto-complete field to look up a user or some other data, but want the database ID of that user or data returned as well so that you can more easily perform some function when the form is submitted? Thanks to Yii's CAutoComplete widget and [jQuery's Autocomplete plugin](http://plugins.jquery.com/project/jq-autocomp...

7 3
11 followers
Viewed: 64 421 times
Version: 1.1
Category: Tutorials

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

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

Extending CJuiDialog

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

Simple way to use AutoComplete using different ID and Display Value

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

Custom Number Formatting or Decimal Separators and i18n

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

Multiple-database support in Yii

Created 13 years ago by Steve Friedl, updated 11 years ago by phazei.

The customary configuration of a Yii application includes just a single database section in the protected/config/main.php file, but it's easy to extend this to support more than one, tying each Model to one of the databases.

20 0
39 followers
Viewed: 144 308 times
Version: 1.1
Category: How-tos
Tags: database

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

Created 11 years ago by kiran sharma, updated 11 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...

Our WebApp that will run without downtime during update/upgrade

Created 12 years ago by Pinoy Coderz, updated 11 years ago by Maurizio Domba Cerin.

How many of us wonder how we can upgrade the website without hurting the operation of our WebApp?

8 2
7 followers
Viewed: 14 224 times
Version: 1.1
Category: Tutorials
Tags: tutorial

Customize CGridView columns directly in your view

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

Entire Messages into javascript object

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

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

1 0
3 followers
Viewed: 10 547 times
Version: 1.1
Category: How-tos

Custom Archive in Blog system

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

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

Created 11 years ago by bluezed, updated 11 years ago by bluezed.

Inspired by it I extended the CButtonColumn class like this:

5 0
7 followers
Viewed: 43 370 times
Version: 1.1
Category: Tutorials

Simple RBAC

Created 11 years ago by hasanavi, updated 11 years ago by Stageline.

If you need simple Role based access control without the long RBAC process then this article is just for you. Lets jump to the point.

33 1
43 followers
Viewed: 118 619 times
Version: 1.1
Category: Tutorials

Create Yii Project In Cloud9

Created 11 years ago by Ben, updated 11 years ago by Ben.

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.

2 0
5 followers
Viewed: 37 968 times
Version: 1.1
Category: Tutorials

How to setup RBAC with a php file

Created 14 years ago by bettor, updated 11 years ago by Stageline.

In this cookbook I will attempt to explain how to use the lightweight version of Role-Based Access Control using a php file. This version does not use database but a php file and is controlled by CPhpAuthManager class.

24 4
21 followers
Viewed: 111 230 times
Version: 1.1
Category: How-tos

YouTube API v2.0 – Browser-based Uploading

Created 11 years ago by Vaibhav, updated 11 years ago by Vaibhav.

Through the YouTube API you can upload files directly to the Youtube server. Youtube currently offers two services 1. Direct Link 2. Browser Based Uploading. In this wiki I will demonstrate how you can quickly set Browser Based Uploading for your Yii application. This is the protocol request that takes place.

2 0
7 followers
Viewed: 24 065 times
Version: 1.1
Category: How-tos

Setting up PHPUnit and Selenium with IntelliJ IDEA/PhpStorm

Created 11 years ago by rAWTAZ, updated 11 years ago by rAWTAZ.

This article intends to summarize the steps taken to set up PHPUnit and Selenium for a Yii project, with IntelliJ IDEA Ultimate (the IDE). It was done on Mac OS X 10.6.

7 0
10 followers
Viewed: 51 049 times
Version: 1.1
Category: How-tos