Wiki articles in category Tutorials

Showing 121-140 of 266 items.

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

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

Inspired by it I extended the CButtonColumn class like this:

5 0
7 followers
Viewed: 45 169 times
Version: 1.1
Category: Tutorials

Create image thumbnails with php_img_preview

Created 13 years ago by Anas AbuDayah Anas AbuDayah, updated 11 years ago by Anas AbuDayah 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.

4 0
9 followers
Viewed: 25 376 times
Version: 1.1
Category: Tutorials
Tags: images, views

Simple way to use AutoComplete using different ID and Display Value

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

Custom Number Formatting or Decimal Separators and i18n

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

Auto set model fields values

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

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

5 0
11 followers
Viewed: 32 692 times
Version: 1.1
Category: Tutorials

Working with CGridView in Admin Panel

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

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

21 1
41 followers
Viewed: 92 937 times
Version: 1.1
Category: Tutorials

How to setup CKeditor

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

Working with radiobutton list

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

XUpload Workflow

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

This wiki describes a more complex workflow using the XUpload widget

28 0
42 followers
Viewed: 99 155 times
Version: 1.1
Category: Tutorials

Simple access control

Created 13 years ago by szfjozsef szfjozsef, updated 13 years ago by szfjozsef szfjozsef.

For those who feel, the Controller->accessRules() or RBAC (Role-Based Access Control) is too complicated or doesn't want the username(s) to be hard-coded in accessRules(), here is a very simple, easy-to-implement solution.

3 7
10 followers
Viewed: 48 050 times
Version: 1.1
Category: Tutorials

MVC primer and 5 minute form walkthrough

Created 13 years ago by rix.rix. rix.rix., updated 13 years ago by rix.rix. rix.rix..

This tutorial assumes some basic knowledge of Yii and a functional development environment.

8 0
6 followers
Viewed: 31 606 times
Version: 1.1
Category: Tutorials

Simple RBAC

Created 13 years ago by hasanavi hasanavi, updated 13 years ago by Stageline 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: 125 401 times
Version: 1.1
Category: Tutorials

Events explained

Created 13 years ago by pligor pligor, updated 12 years ago by Ivo Renkema Ivo Renkema.

Let's see what exactly are the events in Yii!

16 3
24 followers
Viewed: 58 907 times
Version: 1.1
Category: Tutorials

Widget Personalizado

Created 13 years ago by Cálcio Cálcio, updated 10 years ago by Cálcio Cálcio.

$this->render('index', array( 'dataProvider' => $dataProvider, )); `

6 0
4 followers
Viewed: 11 471 times
Version: 1.1
Category: Tutorials

Dynamic parent and child CGridView on single view. Using $.ajax to update child gridview via controller, after row in parent gridview was clicked.

Created 13 years ago by Gerhard Liebenberg Gerhard Liebenberg, updated 11 years ago by Gerhard Liebenberg Gerhard Liebenberg.

Many desktop programmers are used to having dynamic forms, where clicking on a record in a parent sub-form, updates another sub-form with the child records. While having many levels of nested sub-forms in a single view might not be such a good idea for a web application, I thought doing it one level deep might be interesting and useful. But, instead of sub-forms I used CGridViews.

Deploy yii on pagoda box

Created 13 years ago by francis ja francis ja, updated 13 years ago by francis ja francis ja.

pagoda box is very useful tool for a programmer to test their php app online so its very useful one. For deploying code pagodabox use git command

4 0
5 followers
Viewed: 13 187 times
Version: 1.1
Category: Tutorials

CGridView: Use special variable $data in the htmlOptions of a column (i.e. evaluate htmlOptions attribute)

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

    For each column of the CGridView, we can specify name, value, htmlOptions, cssClassExpression etc. In the declarations of the attributes value and cssClassExpression we can use the "special" variable $data, for example like this:
'value'=>'$data->author->username',.
    Now we might want to use $data in the declaration of the `...

19 1
14 followers
Viewed: 82 363 times
Version: 1.1
Category: Tutorials

Collaborative software with git

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

The most difficult thing in a big project, is to manage conflicts with files modified by others users. Git can do this work for us.

9 0
9 followers
Viewed: 15 693 times
Version: 1.1
Category: Tutorials

Starting your Yii Project Reference Guide (with Git VCS in Linux)

Created 13 years ago by marcanuy marcanuy, updated 13 years ago by marcanuy marcanuy.

I've found useful to have a step by step reference guide to work with Git with most used commands, feel free to update it with useful information you may find interesting too.

16 0
12 followers
Viewed: 43 501 times
Version: 1.1
Category: Tutorials

Exporting CGridView results to CSV file

Created 13 years ago by RusAlex RusAlex, updated 13 years ago by RusAlex RusAlex.

A few days ago, i worked for CGridView exporting functional for my client. He asked me to create a simple exporting to a CSV file a CGridView search results.

6 3
18 followers
Viewed: 71 184 times
Version: 1.1
Category: Tutorials